/* 로그인 화면: 밝은 그라데이션 (왼쪽 큰 인사말 + 오른쪽 유리 카드) */
.lg-body { margin: 0; min-height: 100vh; background: #F6F9FF; }
.lg-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px); align-items: center; gap: 40px;
  padding: 0 8vw; position: relative; overflow: hidden; }
.lg-glow { position: absolute; border-radius: 50%; filter: blur(90px); animation: lg-float 18s ease-in-out infinite alternate; pointer-events: none; }
.lg-glow.g1 { width: 58vw; height: 58vw; left: -16vw; top: -24vw; background: #9CC7FF; opacity: .75; }
.lg-glow.g2 { width: 52vw; height: 52vw; right: -14vw; bottom: -26vw; background: #8FE5C4; opacity: .7; animation-delay: -7s; }
.lg-glow.g3 { width: 30vw; height: 30vw; right: 20vw; top: -12vw; background: #FFD0A6; opacity: .6; animation-delay: -12s; }
.lg-glow.g4 { width: 34vw; height: 34vw; left: 22vw; bottom: -18vw; background: #C9B8FF; opacity: .4; animation-delay: -4s; }
@keyframes lg-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(5vw, 4vw) scale(1.12); } }
@keyframes lg-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lg-hello { position: relative; z-index: 2; animation: lg-in .6s ease-out both; }
.lg-hello small { display: block; font-size: 15px; font-weight: 700; color: #2B6FE0; margin-bottom: 14px; }
.lg-hello h1 { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.16; letter-spacing: -.04em; margin: 0; font-weight: 800; color: #14213A; }
.lg-hello h1 em { font-style: normal; background: linear-gradient(90deg, #2B7BF5, #12B886); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-hello p { margin: 20px 0 0; font-size: 17px; color: #5B6B82; }
.lg-card { position: relative; z-index: 2; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); border-radius: 28px;
  padding: 38px 34px 32px; backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 30px 70px rgba(40, 80, 160, .16), 0 2px 6px rgba(40, 80, 160, .05); animation: lg-in .6s .08s ease-out both; }
.lg-brand { display: flex; align-items: center; gap: 11px; }
.lg-brand img { height: 30px; width: auto; }
.lg-brand b { font-size: 20px; letter-spacing: -.02em; }
.lg-card h2 { font-size: 21px; margin: 26px 0 18px; letter-spacing: -.02em; }
.lg-form { display: grid; gap: 12px; }
.lg-form label { display: grid; gap: 6px; }
.lg-form label > span:first-child { font-size: 13px; font-weight: 600; color: #4E5968; }
.lg-form input { height: 48px; border: 1.5px solid rgba(20, 40, 80, .12); border-radius: 12px; padding: 0 15px; font: inherit; font-size: 15.5px;
  background: rgba(255, 255, 255, .85); width: 100%; box-sizing: border-box; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.lg-form input:focus { border-color: #3182F6; background: #fff; box-shadow: 0 0 0 4px rgba(49, 130, 246, .14); }
.lg-pw { position: relative; display: block; }
.lg-pw input { padding-right: 64px; }
.lg-eye { position: absolute; right: 7px; top: 7px; height: 34px; padding: 0 10px; border: 0; background: none; color: var(--ink-3);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; border-radius: 8px; }
.lg-eye:hover { background: rgba(20, 40, 80, .06); color: var(--ink); }
.lg-form label.lg-keep { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-top: 2px; }
.lg-form .lg-keep input { width: 18px; height: 18px; padding: 0; margin: 0; accent-color: #3182F6; flex: none; box-shadow: none; }
.lg-form .lg-keep span { font-size: 14px; font-weight: 600; color: #4E5968; }
.lg-go { height: 50px; border: 0; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 6px; width: 100%;
  color: #fff; background: linear-gradient(90deg, #3182F6, #12B886); transition: transform .1s, filter .15s; }
.lg-go:hover { filter: brightness(1.06); }
.lg-go:active { transform: scale(.985); }
.lg-err { background: var(--pink); color: #C5222F; border-radius: 11px; padding: 10px 13px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.lg-caps { font-size: 12.5px; color: #B26A00; background: var(--lemon); border-radius: 9px; padding: 7px 11px; }
@media (max-width: 900px) {
  .lg-wrap { grid-template-columns: minmax(0, 1fr); padding: 64px 22px 40px; align-content: start; gap: 28px; }
  .lg-card { padding: 30px 22px 26px; }
  .lg-hello h1 { font-size: 34px; } .lg-hello p { font-size: 15px; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .lg-glow, .lg-hello, .lg-card { animation: none; } }

/* 들어올 때 움직임: 빛이 먼저 번지고 → 날짜 → 인사말 두 줄이 차례로 올라오고 → 카드가 또렷해지며 자리 잡고 → 칸들이 하나씩 */
.lg-glow { animation: lg-glow-in 1.12s ease-out both, lg-float 18s ease-in-out infinite alternate; }
.lg-glow.g1 { animation-delay: 0s, 0s; } .lg-glow.g2 { animation-delay: .09s, -7s; }
.lg-glow.g3 { animation-delay: .19s, -12s; } .lg-glow.g4 { animation-delay: .28s, -4s; }
@keyframes lg-glow-in { from { opacity: 0; } }
.lg-hello, .lg-card { animation: none; }
.lg-hello small { animation: lg-soft .43s cubic-bezier(.2, .8, .2, 1) .09s both; }
.lg-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lg-line > span { display: block; animation: lg-up .59s cubic-bezier(.16, 1, .3, 1) both; }
.lg-line:nth-child(1) > span { animation-delay: .14s; }
.lg-line:nth-child(2) > span { animation-delay: .22s; }
@keyframes lg-up { from { transform: translateY(105%); } to { transform: none; } }
.lg-hello p { animation: lg-soft .5s cubic-bezier(.2, .8, .2, 1) .38s both; }
@keyframes lg-soft { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
.lg-card { animation: lg-card .62s cubic-bezier(.16, 1, .3, 1) .19s both; transform-origin: 50% 60%; }
@keyframes lg-card { from { opacity: 0; transform: translateY(22px) scale(.965); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
.lg-card .lg-brand, .lg-card h2, .lg-form > * { animation: lg-soft .37s cubic-bezier(.2, .8, .2, 1) both; }
.lg-card .lg-brand { animation-delay: .34s; } .lg-card h2 { animation-delay: .38s; }
.lg-form > *:nth-child(1) { animation-delay: .43s; } .lg-form > *:nth-child(2) { animation-delay: .47s; }
.lg-form > *:nth-child(3) { animation-delay: .51s; } .lg-form > *:nth-child(4) { animation-delay: .56s; }
.lg-form > *:nth-child(5) { animation-delay: .6s; } .lg-form > *:nth-child(6) { animation-delay: .64s; }
.lg-go { position: relative; overflow: hidden; }
.lg-go::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent); animation: lg-shine .68s ease-out .93s both; }
@keyframes lg-shine { to { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .lg-glow, .lg-hello small, .lg-line > span, .lg-hello p, .lg-card, .lg-card .lg-brand, .lg-card h2, .lg-form > *, .lg-go::after { animation: none; } }

/* 계정 관리 (사용자·권한 화면) · 비밀번호 바꾸기 */
.ac-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); }
.ac-row.off { opacity: .55; }
.ac-row small { color: var(--ink-3); display: block; font-size: 12.5px; margin-top: 2px; }
.ac-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.ac-acts form { margin: 0; }
.ac-more { grid-column: 1 / -1; }
.ac-more summary { cursor: pointer; font-size: 13px; color: var(--navy); font-weight: 600; list-style: none; }
.ac-more summary::-webkit-details-marker { display: none; }
.ac-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; align-items: end; }
.ac-form .field { margin: 0; }
.ac-form .wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .ac-form { grid-template-columns: 1fr; } }
.pw-card { max-width: 460px; }

/* 권한 한눈에 보기 */
.ax-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.ax-grid { padding: 0 8px 10px; }
.ax-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); }
.ax-head { border-top: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding-top: 4px; padding-bottom: 8px; }
.ax-menu { display: flex; align-items: center; gap: 10px; font-size: 15px; } .ax-menu svg { color: var(--ink-3); }
.ax-lv { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.ax-lv i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #12B886; }
.ax-lv.view i { background: #3182F6; }
.ax-lv.mine i { background: #F59E0B; }
.ax-lv.none { color: var(--ink-3); font-weight: 500; } .ax-lv.none i { background: transparent; border: 1.5px solid #C3C9D3; }
.ax-lv small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.ax-legend .ax-lv { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
/* 계정 칸: 입력 칸 모양을 다른 화면과 같게 */
.ac-form input, .ac-form select { height: 42px; border: 1.5px solid var(--line); border-radius: 11px; padding: 0 12px; font: inherit; font-size: 14.5px; background: #fff; width: 100%; box-sizing: border-box; }
.ac-form input:focus, .ac-form select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--mist); }

/* 휴대폰: 로그인 화면의 글자·카드가 떠오르는 움직임을 모두 끈다(김보율 2026-11-19: 움직이지 않게) */
@media (max-width: 760px) {
  *, *::before, *::after { animation: none !important; }
}

/* 휴대폰: 로그인 화면이 위아래로 밀리지 않게 한다(김보율 2026-11-19).
   까닭: 높이를 100vh 로 잡으면 아이폰 사파리에서는 주소 줄만큼 화면보다 길어져 스크롤이 생긴다 → 실제 보이는 높이(100dvh)에 맞추고 고정한다.
   화면이 아주 낮은 휴대폰(높이 700 미만)에서는 단추가 잘릴 수 있어 고정하지 않는다 */
@media (max-width: 760px) {
  .lg-body, .lg-wrap { min-height: 100dvh; }
}
@media (max-width: 760px) and (min-height: 700px) {
  html:has(.lg-body), .lg-body { height: 100dvh; overflow: hidden; overscroll-behavior: none; }
  .lg-wrap { height: 100dvh; min-height: 0; }
}

/* 휴대폰: 밀려 올라오는 움직임 대신 앱 같은 반응만 (김보율 2026-11-19: 딱딱하지 않게, 그러나 화면이 움직이지는 않게)
   - 열릴 때: 제자리에서 스르륵 나타남(위치는 안 움직임)
   - 누를 때: 단추가 살짝 눌림, 입력 칸에 파란 고리가 부드럽게 */
@media (max-width: 760px) {
  * { -webkit-tap-highlight-color: transparent; }
  .lg-hello { animation: lg-fade .45s ease-out both !important; }
  .lg-card { animation: lg-fade .45s .1s ease-out both !important; }
  .lg-go { transition: transform .12s ease, filter .12s ease, box-shadow .12s ease; }
  .lg-go:active { transform: scale(.96); filter: brightness(.94); }
  .lg-form input { transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
  .lg-eye, .lg-keep { transition: opacity .12s ease; } .lg-eye:active, .lg-keep:active { opacity: .55; }
}
@keyframes lg-fade { from { opacity: 0; } to { opacity: 1; } }

/* 휴대폰: 번진 빛 덩어리(.lg-glow)가 아이폰 사파리에서 네모난 테두리로 잘려 보인다(김보율이 보낸 화면, 2026-11-19).
   → 휴대폰에서는 빛 덩어리를 빼고, 같은 색을 은은한 바탕 하나로 깐다. 인사말 글자는 겹쳐 그리지 않게 나타나는 효과를 뺀다 */
@media (max-width: 760px) {
  .lg-glow { display: none !important; }
  .lg-wrap { background: linear-gradient(165deg, #DCEBFF 0%, #F6F9FF 38%, #F6F9FF 62%, #E3F6EE 100%); }
  .lg-hello { animation: none !important; }
}

/* 인사말 둘째 줄("오늘도 안전하게."): 파랑→초록 빛이 글자 위를 천천히 흘러간다(김보율 2026-11-19: 글자가 빛나며 흐르게, 세련되게).
   글자 자리는 움직이지 않고 색만 흐른다. 5초에 한 번, 밝은 띠가 왼쪽에서 오른쪽으로 지나간다 */
.lg-hello h1 em {
  background: linear-gradient(100deg, #2B7BF5 0%, #12B886 30%, #2FCFA0 42%, #4FC3F7 50%, #3D9BFF 58%, #2B7BF5 70%, #12B886 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lg-flow 5s ease-in-out infinite !important;
}
@keyframes lg-flow { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .lg-hello h1 em { animation: none !important; background-position: 100% 0; } }

/* ══ 로그인 화면 다듬기 (김보율 2026-11-19: 세련되게, Claude 판단으로) ══
   원칙: 자리는 움직이지 않는다. 빛과 색만 천천히 흐르고, 누른 곳만 반응한다. 아이폰에서 잘려 보이는 번짐(blur)은 쓰지 않는다
   1) 바탕: 하늘빛과 민트빛이 아주 천천히 숨 쉬듯 번갈아 짙어진다(휴대폰)
   2) 단추: 파랑→초록 색이 천천히 흐르고, 빛줄기가 이따금 지나간다. 누르면 눌리고, 보낸 뒤에는 '들어가는 중'
   3) 입력 칸: 누른 칸의 이름표가 파랗게, 칸은 또렷하게
   4) 카드: 윗선에 가는 빛, 틀리면 좌우로 짧게 흔들림 */
@media (max-width: 760px) {
  .lg-wrap { background: linear-gradient(165deg, #CFE3FF 0%, #F6F9FF 30%, #F6F9FF 55%, #D8F3E8 80%, #CFE3FF 100%) !important; background-size: 100% 220% !important;
             animation: lg-breathe 16s ease-in-out infinite alternate !important; }
}
@keyframes lg-breathe { from { background-position: 0 0; } to { background-position: 0 100%; } }

.lg-go { background: linear-gradient(90deg, #3182F6, #12B886, #3182F6); background-size: 200% 100%;
         animation: lg-go-flow 7s linear infinite !important; box-shadow: 0 8px 20px rgba(49, 130, 246, .22); letter-spacing: .01em; }
@keyframes lg-go-flow { to { background-position: -200% 0; } }
.lg-go::after { animation: lg-shine 4.5s ease-in-out 1.2s infinite !important; }
@keyframes lg-shine { 0% { left: -60%; } 22%, 100% { left: 130%; } }
.lg-go.busy { pointer-events: none; filter: saturate(.75) brightness(1.04); }
.lg-go.busy::before { content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px; border-radius: 50%;
                      border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: lg-spin .7s linear infinite !important; }
@keyframes lg-spin { to { transform: rotate(360deg); } }

.lg-form label > span:first-child { transition: color .15s ease; }
.lg-form label:focus-within > span:first-child { color: #1B64DA; }
.lg-form input { transition: border-color .15s ease, box-shadow .2s ease, background-color .15s ease; }
.lg-form input:not(:placeholder-shown), .lg-form input:focus { background: #fff; }

.lg-card { overflow: hidden; }
.lg-card::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 2px; border-radius: 2px;
                   background: linear-gradient(90deg, transparent, #3182F6, #12B886, transparent); opacity: .55; }
.lg-card.shake { animation: lg-shake .38s ease both !important; }
@keyframes lg-shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.lg-err { animation: lg-fade .25s ease-out both !important; }

.lg-hello small { letter-spacing: .01em; }
.lg-brand img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.lg-card:focus-within .lg-brand img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) { .lg-wrap, .lg-go, .lg-go::after, .lg-card.shake { animation: none !important; } }
