@charset "utf-8";

.lg-body, .su-body {
    --a-ink: #111827;
    --a-ink-2: #374151;
    --a-ink-3: #6b7280;
    --a-ink-4: #9ca3af;
    --a-line: #e5e7eb;
    --a-line-strong: #d9dee3;
    --a-brand: #2554eb;
    --a-brand-ink: #1b41c9;
    --a-hot: #d6363c;
    --a-hot-soft: #fff0f0;
}

.lg-body { background: #fff; }

/* 방법 고르기 */
.lg { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 420px; margin: 0 auto; padding: 56px 20px 72px; box-sizing: border-box; min-height: calc(100dvh - 104px); }
.lg__title { margin: 0 0 32px; text-align: center; font-size: 24px; font-weight: 400; line-height: 1.5; letter-spacing: -.03em; color: var(--a-ink); }
.lg__title b { font-weight: 800; }
.lg__btns { display: flex; flex-direction: column; gap: 12px; }
.lg__btn { position: relative; display: flex; align-items: center; justify-content: center; height: 56px; padding: 0 56px; box-sizing: border-box; border-radius: 14px; font-size: 16px; font-weight: 700; letter-spacing: -.02em; cursor: pointer; text-decoration: none; transition: filter .15s, transform .08s; }
.lg__btn:hover { filter: brightness(.97); }
.lg__btn:active { transform: translateY(1px); }
.lg__btn:focus-visible { outline: 2px solid var(--a-brand); outline-offset: 2px; }
.lg__btn svg { position: absolute; left: 24px; width: 20px; height: 20px; }
.lg__btn.is-dark { background: var(--a-brand); color: #fff; }
.lg__btn.is-line { border: 1px solid var(--a-line-strong); background: #fff; color: var(--a-ink); }
.lg__or { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-size: 12.5px; color: var(--a-ink-4); }
.lg__or::before, .lg__or::after { content: ""; flex: 1; height: 1px; background: var(--a-line); }
.lg__btn.is-naver { background: #03c75a; color: #fff; }
.lg__btn.is-naver svg { width: 16px; height: 16px; left: 26px; }
.lg__btn.is-kakao { background: #fee500; color: #191919; }
.lg__btn.is-google { border: 1px solid var(--a-line-strong); background: #fff; color: var(--a-ink); }
.lg__lost { margin-top: 24px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--a-ink-3); text-decoration: none; }
.lg__lost:hover { color: var(--a-ink); }
.lg__err, .lg__note { margin: 0 0 12px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.lg__err { background: var(--a-hot-soft); color: var(--a-hot); }
.lg__note { background: #edf1fe; color: var(--a-brand-ink); }

/* 이메일 로그인 */
.lm { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 420px; margin: 0 auto; padding: 56px 20px 72px; box-sizing: border-box; min-height: calc(100dvh - 104px); }
.lm__title { margin: 0 0 28px; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--a-ink); }
.lm__form { display: grid; gap: 18px; }
.lm__field label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--a-ink); }
.lm__field label svg { width: 16px; height: 16px; }
.lm__field input { width: 100%; height: 54px; padding: 0 16px; box-sizing: border-box; border: 1px solid var(--a-line-strong); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--a-ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.lm__field input::placeholder { color: var(--a-ink-4); }
.lm__field input:focus { border-color: var(--a-brand); box-shadow: 0 0 0 3px rgba(37, 84, 235, .12); }
.lm__pw { position: relative; }
.lm__pw input { padding-right: 52px; }
.lm__eye { position: absolute; top: 50%; right: 7px; display: grid; place-items: center; width: 40px; height: 40px; transform: translateY(-50%); border: 0; border-radius: 10px; background: none; color: var(--a-ink-4); cursor: pointer; }
.lm__eye svg { width: 20px; height: 20px; }
.lm__eye:hover { color: var(--a-ink); background: #f2f4f7; }
.lm__submit { height: 54px; margin-top: 4px; border: 0; border-radius: 12px; background: var(--a-brand); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.lm__submit:hover { background: var(--a-brand-ink); }
.lm__lost { margin-top: 24px; text-align: center; font-size: 15px; font-weight: 600; color: var(--a-ink-3); text-decoration: none; }
.lm__lost:hover { color: var(--a-ink); }
.lm__join { margin: 10px 0 0; text-align: center; font-size: 15px; color: var(--a-ink-3); }
.lm__join a { font-weight: 700; color: var(--a-brand); text-decoration: none; }

/* 가입 */
body.su-body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: #f3f6f9; }
.su { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px 88px; }
.su-card { width: 100%; max-width: 500px; padding: 46px 40px 32px; box-sizing: border-box; border-radius: 20px; background: #fff; box-shadow: 0 2px 6px rgba(67, 89, 113, .08), 0 12px 32px rgba(67, 89, 113, .06); }
.su-top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.su-bar { width: 60px; height: 4px; border-radius: 4px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.su-bar span { display: block; width: 10%; height: 100%; border-radius: 4px; background: var(--a-brand); transition: width .3s ease; }
.su-count { font-size: 13px; font-weight: 600; color: #a1a7b0; font-variant-numeric: tabular-nums; }

.su-step { display: none; padding-top: 34px; }
.su-step.is-on { display: block; }
.su-title { margin: 0; font-size: 24px; font-weight: 500; line-height: 34px; letter-spacing: -.02em; color: #191919; }
.su-title b { font-weight: 800; }
.su-sub { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: #6b7280; }

.su-check { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 30px; font-size: 15px; line-height: 30px; color: #000; cursor: pointer; }
.su-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.su-check i { position: relative; flex: none; width: 21px; height: 21px; box-sizing: border-box; border: 2px solid #7c7c7c; border-radius: 50%; background: #fff; transition: background-color .15s, border-color .15s; }
.su-check i::after { content: ""; position: absolute; top: 5px; left: 4px; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); opacity: 0; }
.su-check input:checked + i { border-color: var(--a-brand); background: var(--a-brand); }
.su-check input:checked + i::after { opacity: 1; }
.su-check input:focus-visible + i { outline: 2px solid var(--a-brand); outline-offset: 2px; }

.su-all { margin-top: 28px; padding-bottom: 14px; border-bottom: 1px solid #e9ecef; }
.su-info { margin: 0; padding: 9px 0 5px 33px; font-size: 14px; line-height: 20px; color: #6b7280; }
.su-items { margin: 0; padding: 8px 0 0; list-style: none; }
.su-items li { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.su-view { margin-left: auto; font-size: 13px; color: #6b7280; text-decoration: underline; text-underline-offset: 2px; }
.su-view:hover { color: #222; }

.su-btns { display: flex; gap: 8px; padding-top: 28px; }
.su-btn { flex: 1; display: grid; place-items: center; height: 52px; border: 0; border-radius: 12px; background: var(--a-brand); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background-color .15s; text-decoration: none; }
.su-btn:hover { background: var(--a-brand-ink); }
.su-btn:disabled { background: #a9b1bd; cursor: default; }
.su-btn-line { flex: 0 0 30%; background: #fff; color: #222; box-shadow: inset 0 0 0 1px #d1d5db; }
.su-btn-line:hover { background: #f9fafb; }
.su-help { margin: 0; padding: 18px 0 6px; font-size: 15px; text-align: center; color: #374151; }
.su-help a { color: var(--a-brand); font-weight: 700; text-decoration: none; }

.su-field { margin-top: 20px; }
.su-step .su-title + .su-field, .su-step .su-sub + .su-field { margin-top: 30px; }
.su-field > label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #222; }
.su-field input { width: 100%; height: 50px; padding: 0 14px; box-sizing: border-box; border: 1px solid var(--a-line-strong); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; color: #222; outline: none; transition: border-color .15s, box-shadow .15s; }
.su-field input::placeholder { color: #b0b6be; }
.su-field input:focus { border-color: var(--a-brand); box-shadow: 0 0 0 3px rgba(37, 84, 235, .12); }
.su-field input[readonly] { background: #f5f6f8; color: #555; }
.su-field input[readonly]:focus { border-color: var(--a-line-strong); box-shadow: none; }
.su-field[hidden] { display: none; }

.su-error { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 11px 14px; border-radius: 12px; background: var(--a-hot-soft); color: var(--a-hot); font-size: 14px; line-height: 1.5; }
.su-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e5484d; color: #fff; font-size: 13px; font-weight: 800; }
.su-error[hidden] { display: none; }

.su-lock { position: relative; }
.su-lock input { padding-right: 104px; }
.su-timer, .su-done { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); font-size: 14px; font-weight: 600; pointer-events: none; }
.su-timer { color: #e5484d; font-variant-numeric: tabular-nums; }
.su-timer.is-over { color: #6b7280; }
.su-done { display: inline-flex; align-items: center; gap: 5px; color: var(--a-brand); }
.su-done svg { width: 16px; height: 16px; }
.su-done[hidden] { display: none; }
.su-hint { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: #6b7280; }
.su-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: #222; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.su-pw { position: relative; }
.su-pw input { padding-right: 50px; }
.su-eye { position: absolute; right: 6px; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; transform: translateY(-50%); border: 0; border-radius: 10px; background: none; color: #9aa2b1; cursor: pointer; }
.su-eye svg { width: 18px; height: 18px; }
.su-eye:hover { color: #222; background: #f2f4f7; }
.su-rule { margin: 7px 0 0; font-size: 13px; color: #6b7280; }

.su-note { margin: 14px 0 0; padding: 11px 14px; border-radius: 12px; background: #edf1fe; color: var(--a-brand-ink); font-size: 14px; font-weight: 600; line-height: 1.5; }
.su-form-next { margin-top: 24px; padding-top: 4px; border-top: 1px solid #e9ecef; }

@media (max-width: 640px) {
    body.su-body { background: #fff; }
    .su { flex: none; align-items: flex-start; padding: 8px 20px 48px; }
    .su-card { max-width: none; padding: 16px 0 0; border-radius: 0; box-shadow: none; }
}
@media (max-width: 480px) {
    .lg, .lm { padding-top: 32px; }
    .lg__title { font-size: 23px; }
}
