/* 로그인 · 회원가입 · 비밀번호 찾기 · 신청 조회 (시안 voicecheck-signin) — 왼쪽은 결과 카드 그림, 오른쪽은 한 화면에 들어오는 입력.
   머리(로고 + 홈으로)는 layouts/focus 가 그린다 */
:root { --err-soft: #FDEEED; --ok-soft: #EAF6F0; --ok: #23784F; }

/* 배치 — 왼쪽 그림 · 오른쪽 입력 (사이트와 같은 폭 · 같은 여백) */
.auth { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 80px); padding: 24px max(var(--gut), env(safe-area-inset-right)) 24px max(var(--gut), env(safe-area-inset-left)); }
.art { position: relative; overflow: hidden; border-radius: 28px; background: var(--peri-soft); display: grid; place-items: center; min-height: 560px; }
.side { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 16px 0; }
.form-area { width: 100%; max-width: 400px; }

/* 결과 카드 그림 — 마이페이지에서 이어 보는 것 */
.rcard { width: min(360px, 72%); padding: 20px; border-radius: 22px; background: #fff; transform: rotate(-5deg); box-shadow: 0 30px 60px rgba(20, 32, 92, .16); }
.rcard-top { display: flex; align-items: center; gap: 10px; }
.rcard-top .av { width: 34px; height: 34px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; }
.rcard-top b { font-size: 15px; font-weight: 700; }
.rcard-top .pill { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--cobalt); font-size: var(--fs-xs); font-weight: 650; }
.rcard-in { margin-top: 14px; padding: 18px; border-radius: 16px; background: var(--tint); }
.rcard-type { display: flex; align-items: center; gap: 10px; }
.rcard i { font-style: normal; }
.rcard-type i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; }
.rcard-type b { font-size: 19px; font-weight: 750; letter-spacing: -.03em; color: var(--navy); }
.rcard-in p { margin-top: 12px; font-size: var(--fs-xs); line-height: 1.55; font-weight: 500; color: var(--navy); }
.rcard svg.mini { display: block; width: 62%; margin: 12px auto 0; }
.rcard .go { margin-top: 14px; height: 44px; border-radius: 12px; background: var(--cobalt); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 650; }
.rcard i.t1 { background: var(--t1); color: var(--navy); } .rcard i.t2 { background: var(--t2); color: var(--navy); }
.rcard i.t3 { background: var(--t3); color: #fff; } .rcard i.t4 { background: var(--t4); color: #fff; }

/* 카드 넘김 — 기울어진 카드 틀은 그대로 두고, 안의 화면만 앱 화면처럼 바뀐다 (결과 → 강의실 → 과제 피드백 → 변화 기록) */
.deck { display: flex; flex-direction: column; }
.deck .sw { display: grid; }
.deck .sw > span { grid-area: 1 / 1; opacity: 0; transition: opacity .35s ease; }
.deck .sw > span.on { opacity: 1; transition-delay: .12s; }
.faces { display: grid; flex: 1; margin-top: 14px; }
.faces .face { grid-area: 1 / 1; margin-top: 0; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.faces .face.on { opacity: 1; transform: none; transition-delay: .12s; }
.dots { position: absolute; left: 50%; bottom: 26px; display: flex; gap: 6px; transform: translateX(-50%); }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(42, 75, 232, .25); transition: width .4s, background .4s; }
.dots i.on { width: 22px; background: var(--cobalt); }
.rcard-in .k { margin: 0; font-size: var(--fs-xs); font-weight: 650; color: var(--slate); }
.rcard-in .ttl { display: block; margin-top: 2px; font-size: 19px; font-weight: 750; letter-spacing: -.03em; color: var(--navy); }
.rcard-in .bar { margin-top: 16px; height: 8px; border-radius: 4px; background: #fff; overflow: hidden; }
.rcard-in .bar i { display: block; height: 100%; border-radius: 4px; background: var(--cobalt); }
.rcard-in .bar-n { margin-top: 8px; font-size: var(--fs-xs); font-weight: 500; color: var(--slate); }
.rcard-in .bar-n b { color: var(--cobalt); font-weight: 750; }
.lessons { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lessons li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fff; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); }
.lessons li em { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.lessons li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--t1); }
.lessons li.done { color: var(--slate); }
.lessons li.done::before { background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.lessons li.now { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.lessons li.now::before { background: #fff; box-shadow: inset 0 0 0 4px var(--cobalt); }
.lessons li span { flex: none; margin-left: auto; font-size: var(--fs-xs); font-weight: 500; color: var(--slate); }
.rcard-in .wv { display: block; width: 100%; height: 40px; margin-top: 14px; }
.rcard-in .wv rect { fill: var(--t1); }
.rcard-in .wv rect.mk { fill: var(--cobalt); }
.cm { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; font-size: var(--fs-xs); line-height: 1.55; font-weight: 500; color: var(--ink-2); }
.cm span { margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: var(--cobalt); color: #fff; font-size: var(--fs-xs); font-weight: 650; font-variant-numeric: tabular-nums; }
.shift { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 500; color: var(--slate); }
.shift span { display: inline-flex; align-items: center; gap: 6px; }
.shift i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 750; }
.shift .to { flex: 1; justify-content: center; font-size: var(--fs-xs); color: var(--cobalt); }
.shift .to::before, .shift .to::after { content: ""; flex: 1; height: 1.5px; background: var(--t1); }
.legend { display: flex; justify-content: center; gap: 16px; margin-top: 8px; font-size: var(--fs-xs); font-weight: 500; color: var(--slate); }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 2px dashed var(--t2); }
.legend .l-now::before { border-top: 2.5px solid var(--cobalt); }

/* 입력 */
.form-area h1 { font-size: var(--fs-2xl); line-height: 1.3; font-weight: 750; letter-spacing: -.04em; }
.form-area .desc { margin-top: 4px; font-size: var(--fs-s); color: var(--slate); }
.form-area .desc.is-strong { color: var(--ink-2); }
.tabs { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--mist); }
.tabs button { height: 44px; border: 0; border-radius: 11px; background: none; font-size: var(--fs-s); font-weight: 500; color: var(--slate); }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); font-weight: 650; box-shadow: 0 1px 3px rgba(20, 27, 42, .08); }
@media (hover: hover) { .tabs button[aria-selected="false"]:hover { color: var(--ink); } }
.form-area form { margin-top: 16px; display: grid; gap: 12px; }
.field label { display: block; margin-bottom: 6px; font-size: var(--fs-s); font-weight: 650; }
.box { position: relative; }
.in { width: 100%; height: 54px; padding: 0 18px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--field); font: 400 var(--fs-m)/1.4 var(--font); color: var(--ink); transition: box-shadow .15s; -webkit-appearance: none; appearance: none; }
.in::placeholder { color: #98A1B3; }
@media (hover: hover) { .in:hover { box-shadow: inset 0 0 0 1px var(--slate); } }
.in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 4px var(--tint); }
.in[readonly] { background: var(--mist); color: var(--ink-2); }
.in.code { letter-spacing: .4em; font-variant-numeric: tabular-nums; }
.bad .in { box-shadow: inset 0 0 0 1.5px var(--err); }
.eye { position: absolute; right: 4px; top: 4px; width: 46px; height: 46px; border: 0; border-radius: 10px; background: none; color: var(--slate); display: grid; place-items: center; }
@media (hover: hover) { .eye:hover { background: var(--mist); color: var(--ink); } }
.box .in.pw { padding-right: 54px; }
.err { margin-top: 6px; font-size: var(--fs-s); font-weight: 650; color: var(--err); line-height: 1.5; }
.err svg { display: none; }
.rules { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.rules li { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--mist); font-size: var(--fs-xs); font-weight: 500; color: var(--slate); transition: background .15s, color .15s; }
.rules li.ok { background: var(--tint); color: var(--cobalt); }
.rules svg { opacity: .35; } .rules li.ok svg { opacity: 1; }
.msg { margin-top: 16px; padding: 11px 14px; border-radius: 12px; font-size: var(--fs-s); font-weight: 650; line-height: 1.55; }
.msg.bad { background: var(--err-soft); color: var(--err); }
.msg.good { background: var(--ok-soft); color: var(--ok); }
.btn-main { width: 100%; }
.form-area > .btn-main { margin-top: 22px; }
.turnstile { min-height: 65px; }
.alt { margin-top: 16px; text-align: center; font-size: var(--fs-s); color: var(--slate); }
.alt .link { font-size: var(--fs-s); text-underline-offset: 4px; }
button.link { padding: 0; border: 0; background: none; font: inherit; font-weight: 650; color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; cursor: pointer; }
.alt .link { display: inline-block; padding-block: 12px; margin-block: -12px; }   /* 누르는 자리 44px — 보이는 자리는 그대로 */
.guest { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; justify-content: center; gap: 8px; font-size: var(--fs-s); color: var(--ink-2); }
.guest a { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-block: -12px; font-weight: 650; color: var(--cobalt); }
.guest.note { display: block; text-align: left; font-size: var(--fs-xs); line-height: 1.6; color: var(--slate); }
.guest.note a { margin-left: 2px; vertical-align: middle; }
/* 신청서에서 온 회원가입 — 회원으로 신청하는 이유 (2026-11-02) */
.join-note { margin-top: 14px; padding: 14px 16px 13px; border-radius: 14px; background: var(--tint); font-size: var(--fs-s); line-height: 1.55; color: var(--ink-2); }
.join-note .jn-t { display: flex; align-items: center; gap: 7px; font-weight: 650; color: var(--ink); }
.join-note .jn-t svg { flex: none; color: var(--cobalt); }
.join-note ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.join-note li { display: flex; align-items: center; gap: 8px; }
.join-note li svg { flex: none; color: var(--cobalt); }
.join-note .jn-s { margin-top: 8px; font-size: var(--fs-xs); color: var(--slate); }
.legal { margin-top: 14px; display: flex; justify-content: center; gap: 16px; font-size: var(--fs-fine); color: var(--slate); }
.legal a { display: inline-block; padding-block: 15px; margin-block: -15px; }
@media (hover: hover) { .legal a:hover { color: var(--ink); } }
.btn-main:disabled { opacity: .7; cursor: default; }

@media (max-width: 960px) {
    .auth { grid-template-columns: 1fr; padding-top: 8px; padding-bottom: 32px; }
    .art { display: none; }
    .side { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .deck .sw > span, .faces .face, .dots i, .rules li { transition: none !important; } }
