* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(254, 242, 242, 0.95), transparent 28%),
        radial-gradient(circle at bottom right, rgba(219, 234, 254, 0.95), transparent 32%),
        #f8fafc;
    color: #111827;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}


.api-authbar {
    background: #0f172a;
    color: #e5e7eb;
    min-height: 32px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.api-authbar__inner {
    max-width: 1900px;
    margin: 0 auto;
    min-height: 32px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.api-authbar__left,
.api-authbar__right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.api-authbar__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.api-authbar[data-state="login"] .api-authbar__dot {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.api-authbar[data-state="guest"] .api-authbar__dot {
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.api-authbar[data-state="error"] .api-authbar__dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.api-authbar__pill {
    min-width: 54px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.api-authbar__user {
    color: #cbd5e1;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-topbar {
    background: #1f1f1f;
    color: #fff;
    height: 34px;
}

.site-topbar__inner {
    max-width: 1900px;
    margin: 0 auto;
    height: 100%;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-topbar__flags {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.flag-pill {
    min-width: 22px;
    height: 16px;
    border-radius: 2px;
    background: #f7f7f7;
    color: #111;
    font-size: 9px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flag-pill--id {
    background: linear-gradient(180deg, #e11d2f 0 50%, #ffffff 50% 100%);
    color: transparent;
}

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.header-inner {
    max-width: 1900px;
    margin: 0 auto;
    min-height: 70px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-inner--plain {
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #d90429;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.brand-text {
    font-size: 15px;
}

.brand--plain {
    font-weight: 900;
    letter-spacing: 0;
}

.brand-text--main {
    color: #d71824;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.nav {
    display: flex;
    gap: 28px;
    color: #475569;
    font-size: 14px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.actions button,
.ghost-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 15px;
}

.ghost-btn--soft {
    border-color: #d8dbe1;
    color: #1f2937;
}

.ghost-btn--solid {
    border-color: #d71824;
    background: #d71824;
    color: #fff;
}

.ghost-btn.is-active-soft,
.ghost-btn.is-active-solid {
    box-shadow: 0 6px 18px rgba(215, 24, 36, 0.12);
}

.auth-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 24px 56px;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 460px);
    gap: 24px;
    align-items: start;
}

.auth-visual {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 32px;
    background:
        radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.22), transparent 22%),
        radial-gradient(circle at 80% 18%, rgba(59, 130, 246, 0.16), transparent 24%),
        linear-gradient(135deg, #0f172a 0%, #111827 52%, #1e293b 100%);
    color: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
    min-height: 720px;
    height: 720px;
    align-self: start;
    position: sticky;
    top: 104px;
}

.auth-visual-copy {
    position: absolute;
    inset: 0 auto auto 0;
    padding: 34px 34px 0;
    max-width: 520px;
    z-index: 2;
}

.auth-visual-copy .pill {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.auth-visual-copy h1 {
    margin: 18px 0 12px;
    font-size: 54px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.auth-visual-copy p {
    margin: 0;
    color: rgba(248, 250, 252, 0.82);
    line-height: 1.7;
}

.auth-illustration {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: min(92%, 640px);
    display: block;
}

.auth-card {
    border: 1px solid #e5e7eb;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
    padding: 30px 24px 24px;
    align-self: start;
}

.auth-eyebrow {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff1f2;
    color: #be123c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.auth-card h2 {
    margin: 16px 0 10px;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.auth-description {
    margin: 0 0 22px;
    color: #475569;
    line-height: 1.7;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
}

.field.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.field label,
.fieldset-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.required {
    color: #dc2626;
}

.field input,
.field select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: #fff;
    padding: 0 16px;
    color: #0f172a;
}

.split-input {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
}

.otp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.otp-btn {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #d71824;
    border-radius: 16px;
    background: #d71824;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.otp-btn--ghost {
    border-color: #dbe4f0;
    background: #fff;
    color: #0f172a;
}

.agreement-box {
    margin-top: 4px;
    border: 1px solid #dbe4f0;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.04);
}

.agreement-head {
    padding: 18px 18px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.agreement-head strong {
    display: block;
    font-size: 16px;
}

.agreement-head p {
    margin: 8px 0 0;
    color: #475569;
    line-height: 1.6;
    font-size: 14px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}

.check-row input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.agreement-item {
    margin: 0 14px 10px;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: #f8fbff;
}

.agreement-item .check-row {
    justify-content: space-between;
    align-items: center;
}

.agreement-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agreement-label span {
    line-height: 1.5;
}

.agreement-link {
    color: #2563eb;
    font-weight: 700;
}

.agreement-error {
    padding: 0 18px 16px;
    color: #e11d48;
    font-size: 14px;
}

.auth-submit {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    background: #111827;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.auth-shell--login {
    padding-top: 30px;
}

.login-page-shell {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 20px 24px;
}

.login-wrapper-card {
    display: flex;
    width: 100%;
    max-width: 820px;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    border: 1px solid #e8edf4;
}

.login-brand-panel {
    flex: 1;
    min-width: 280px;
    padding: 38px 30px;
    background: linear-gradient(180deg, #e31b23 0%, #c90f17 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.login-brand-badge {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    display: grid;
    place-items: center;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.login-brand-panel h1 {
    margin: 28px 0 10px;
    font-size: 2.1rem;
    line-height: 1.2;
    font-weight: 800;
}

.login-brand-panel p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    opacity: 0.92;
}

.login-form-panel {
    flex: 1.45;
    padding: 34px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-wrapper-card--member {
    align-items: stretch;
}

.login-form-panel--member {
    justify-content: flex-start;
}

.auth-form--member {
    gap: 16px;
}

.login-form-head h2 {
    margin: 0 0 10px;
    font-size: 1.85rem;
    font-weight: 800;
    color: #20242b;
}

.login-form-head .subtitle {
    margin: 0 0 26px;
    color: #7b8794;
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-login-form {
    display: grid;
    gap: 15px;
}

.login-field {
    position: relative;
}

.login-field--icon .login-field__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 16px;
    font-weight: 700;
}

.login-field input {
    width: 100%;
    min-height: 54px;
    border: 1.5px solid #ebedf0;
    border-radius: 14px;
    background: #f8f9fb;
    padding: 0 16px 0 48px;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-field input::placeholder {
    color: #9aa4b2;
}

.login-field input:focus {
    outline: none;
    border-color: #d61f26;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(214, 31, 38, 0.08);
}

.auth-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: -4px;
}

.login-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 14px;
}

.login-check input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.auth-login-status {
    min-height: 20px;
    margin: 0;
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
}

.auth-login-status.is-success {
    color: #15803d;
}

.auth-submit--login {
    min-height: 54px;
    border-radius: 14px;
    background: #d61f26;
    font-size: 15px;
    font-weight: 900;
    margin-top: 4px;
}

.auth-links--login {
    margin-top: 16px;
    justify-content: center;
}

.forgot-pw {
    color: #d61f26;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.auth-divider {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-divider__line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider__text {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.auth-social-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.auth-social {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #dbe4f0;
    background: #fff;
    color: #0f172a;
    font-weight: 800;
    opacity: 0.52;
}

.auth-social--kakao {
    background: #fee500;
    border-color: #fee500;
    color: #111827;
}

.auth-social--naver {
    background: #03c75a;
    border-color: #03c75a;
    color: #fff;
}

.auth-social--apple {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.auth-helper--login {
    margin-top: 16px;
    text-align: center;
}

.lang-chip {
    min-width: 44px;
}

.auth-page-footer {
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.auth-page-footer__inner {
    max-width: 1900px;
    margin: 0 auto;
    padding: 58px 22px 50px;
    text-align: center;
}

.auth-page-footer__title {
    margin: 0 0 14px;
    color: #d71824;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.auth-page-footer__text {
    margin: 0 0 10px;
    color: #94a3b8;
    font-size: 14px;
}

.auth-page-footer__social {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    gap: 18px;
    color: #cbd5e1;
    font-size: 26px;
}

@media (max-width: 960px) {
    .login-wrapper-card {
        flex-direction: column;
        max-width: 520px;
    }

    .login-brand-panel {
        min-width: auto;
        padding: 28px 20px;
    }

    .login-brand-badge {
        width: 80px;
        height: 80px;
        border-radius: 22px;
        font-size: 30px;
    }

    .login-brand-panel h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 640px) {
    .site-topbar__inner,
    .header-inner,
    .auth-page-footer__inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-inner {
        min-height: 62px;
    }

    .brand-text--main {
        font-size: 18px;
    }

    .actions {
        gap: 8px;
    }

    .ghost-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .auth-shell--login {
        padding: 18px 0 32px;
    }

    .login-page-shell {
        padding: 14px;
    }

    .login-form-panel {
        padding: 26px 20px;
    }

    .auth-login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        display: none;
    }
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: #475569;
    font-size: 14px;
}

.auth-links a,
.auth-helper a {
    color: #111827;
    font-weight: 700;
}

.auth-helper {
    margin-top: 16px;
    text-align: center;
    color: #475569;
    font-size: 15px;
}

.tiny-note {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 1020px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 320px;
        height: 320px;
        position: relative;
        top: auto;
    }

    .auth-visual-copy h1 {
        font-size: 42px;
    }

    .auth-illustration {
        width: min(76%, 420px);
    }
}

@media (max-width: 760px) {
    .header-inner,
    .nav,
    .actions {
        flex-wrap: wrap;
    }

    .auth-shell {
        padding: 20px 14px 36px;
    }

    .auth-card,
    .auth-visual {
        border-radius: 24px;
    }

    .auth-card h2 {
        font-size: 28px;
    }

    .field.two-up {
        grid-template-columns: 1fr;
    }
}


.auth-sn-result {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}
