@charset "UTF-8";

:root {
    color-scheme: light;
    --auth-ink: #19243a;
    --auth-muted: #7d889a;
    --auth-line: #e7ebf2;
    --auth-blue: #3768e8;
    --auth-navy: #162442;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; color: var(--auth-ink); background: #f7f8fc; font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

.site-header { height: 76px; flex: 0 0 76px; border-bottom: 1px solid #edf0f5; background: #fff; }
.header-inner { width: min(1160px, calc(100% - 48px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--auth-navy); font-size: 16px; font-weight: 800; letter-spacing: .055em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px 10px 10px 3px; color: white; background: linear-gradient(145deg, #5485ff, #2e58d6); font-size: 19px; }
.brand-accent, .footer-brand span { color: var(--auth-blue); }
.main-nav { height: 100%; display: flex; align-items: center; gap: 32px; color: #687386; font-size: 12px; font-weight: 600; }
.main-nav a:hover, .main-nav .current { color: var(--auth-blue); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-login, .header-signup { min-height: 35px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid var(--auth-line); border-radius: 5px; color: #47546a; font-size: 11px; font-weight: 700; }
.header-signup { border-color: var(--auth-blue); color: white; background: var(--auth-blue); }

.auth-main { width: min(100% - 36px, 1080px); flex: 1; margin: 0 auto; padding: 62px 0 68px; display: grid; place-items: center; }
.auth-card { width: min(100%, 470px); padding: 39px 42px 36px; border: 1px solid #edf0f5; border-radius: 11px; background: #fff; box-shadow: 0 12px 48px rgb(29 48 83 / 6%); }
.auth-kicker { margin: 0 0 8px; color: var(--auth-blue); font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.auth-title { margin: 0; color: var(--auth-navy); font-size: 29px; font-weight: 750; letter-spacing: -.055em; }
.auth-description { margin: 8px 0 26px; color: var(--auth-muted); font-size: 12px; }
.auth-form { display: grid; gap: 9px; }
.field-label { margin-top: 7px; color: #49566d; font-size: 11px; font-weight: 700; }
.field-input { width: 100%; min-height: 45px; padding: 0 13px; border: 1px solid #e3e8f0; border-radius: 5px; outline: none; color: #25334b; background: #fff; font-family: inherit; font-size: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.field-input::placeholder { color: #adb5c1; }
.field-input:focus { border-color: #83a3f6; box-shadow: 0 0 0 3px rgb(55 104 232 / 11%); }
.field-hint { margin: -3px 0 0; color: #959eac; font-size: 10px; }
.password-hint { margin: -3px 0 1px; color: #959eac; font-size: 10px; }
.password-input-wrap { position: relative; }
.password-input-wrap .field-input { padding-right: 12px; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 5px 0 9px; }
.check-label { display: inline-flex; align-items: center; gap: 7px; color: #697589; font-size: 11px; cursor: pointer; }
.check-label input { width: 15px; height: 15px; margin: 0; accent-color: var(--auth-blue); }
.text-link { color: var(--auth-blue); font-size: 11px; font-weight: 650; }
.text-link:hover { text-decoration: underline; }
.primary-button { min-height: 46px; margin-top: 7px; border: 0; border-radius: 5px; color: #fff; background: var(--auth-blue); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.primary-button:hover { background: #2d58ce; }
.primary-button:active { transform: translateY(1px); }
.auth-switch { margin: 23px 0 0; color: #838d9c; font-size: 11px; text-align: center; }
.auth-notice { margin: 20px 0 0; padding: 10px 12px; border: 1px solid #e9edf4; border-radius: 5px; color: #7d8796; background: #f8f9fb; font-size: 10px; line-height: 1.7; }
.auth-notice strong { color: #59667b; }
.auth-form-status { margin: 5px 0 0; padding: 11px 12px; border: 1px solid #dbe8df; border-radius: 5px; color: #267343; background: #f3faf5; font-size: 11px; }
.auth-form-status[data-state="error"] { border-color: #f0d5d5; color: #a73d45; background: #fff6f6; }
.auth-form-status[data-state="info"] { border-color: #dee7f6; color: #506786; background: #f5f8ff; }
.auth-form-status[hidden] { display: none; }
.primary-button:disabled { opacity: .65; cursor: wait; }
.secondary-button { min-height: 39px; display: block; margin: 12px auto 0; padding: 0 16px; border: 1px solid var(--auth-line); border-radius: 5px; color: #47546a; background: white; font-family: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
.secondary-button:hover { border-color: #ced8eb; color: var(--auth-blue); }
.secondary-button[hidden] { display: none; }
.divider { height: 1px; margin: 20px 0 0; background: #edf0f4; }
.agreement-list { margin: 11px 0 2px; display: grid; gap: 10px; }
.agreement-list .check-label { align-items: flex-start; }
.agreement-list .check-label input { flex: 0 0 15px; margin-top: 2px; }
.agreement-list .text-link { margin-left: 2px; white-space: nowrap; }
.auth-card-signup { padding-top: 35px; padding-bottom: 30px; }
.auth-card-signup .auth-description { margin-bottom: 19px; }
.auth-card-signup .auth-form { gap: 6px; }
.auth-card-signup .field-input { min-height: 42px; }
.auth-card-signup .field-label { margin-top: 5px; }
.auth-card-signup .primary-button { margin-top: 11px; }
.gender-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.gender-fieldset legend { padding: 0; }
.required-hint { color: #8893a2; font-size: 10px; font-weight: 400; }
.gender-options { min-height: 42px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 19px; padding: 0 12px; border: 1px solid #e3e8f0; border-radius: 5px; background: #fff; }
.gender-option { display: inline-flex; align-items: center; gap: 6px; color: #5a6679; font-size: 11px; cursor: pointer; }
.gender-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--auth-blue); }

.site-footer { padding: 19px 0; border-top: 1px solid #edf0f4; background: #fff; }
.footer-inner { width: min(1080px, calc(100% - 48px)); margin: 0 auto; display: flex; align-items: center; gap: 15px; }
.footer-brand { color: #263654; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.footer-description, .footer-copyright { margin: 0; color: #929baa; font-size: 10px; }
.footer-copyright { margin-left: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 680px) {
    .site-header { height: 66px; flex-basis: 66px; }
    .header-inner { width: calc(100% - 32px); }
    .brand { font-size: 13px; }
    .brand-mark { width: 29px; height: 29px; }
    .main-nav { gap: 12px; font-size: 10px; }
    .main-nav a:nth-child(2), .main-nav a:nth-child(3) { display: none; }
    .header-actions { gap: 5px; }
    .header-login, .header-signup { min-height: 32px; padding: 0 9px; font-size: 10px; }
    .auth-main { width: calc(100% - 32px); padding: 37px 0 44px; }
    .auth-card { padding: 32px 25px 28px; }
    .auth-card-signup { padding-top: 30px; }
    .footer-inner { width: calc(100% - 32px); flex-wrap: wrap; gap: 7px 11px; }
    .footer-description { width: calc(100% - 100px); }
    .footer-copyright { width: 100%; margin-left: 0; }
}

@media (max-width: 390px) {
    .main-nav { gap: 8px; }
    .main-nav a:last-child { display: none; }
    .header-login, .header-signup { padding: 0 7px; }
    .auth-card { padding-right: 20px; padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}