/* ── Auth Pages (login, register) ── */
:root {
    --auth-accent:       #ff2c2c;
    --auth-accent-hover: #d82222;
    --auth-text:         #f5f6f8;
    --auth-muted:        rgba(245, 246, 248, 0.62);
    --auth-line:         rgba(255, 255, 255, 0.18);
    --auth-field:        rgba(255, 255, 255, 0.02);
}

*, *::before, *::after { box-sizing: border-box; }

/* ── Page wrapper ── */
.auth-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #090b10;
    padding: 150px 80px 80px;
}

/* ── Centered single-column layout ── */
.auth-layout {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* ── Heading (centered) ── */
.auth-heading {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1) 0.05s,
                transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.05s;
}
.auth-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

.auth-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.32);
    margin-bottom: 12px;
}

.auth-title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 12px;
}

.auth-desc {
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--auth-muted);
    line-height: 1.6;
    margin: 0;
    white-space: nowrap;
}

/* ── Form box (full width under heading) ── */
.auth-box {
    width: 100%;
    border: 1px solid var(--auth-line);
    background: transparent;
    padding: clamp(28px, 3vw, 44px) clamp(24px, 3vw, 40px) clamp(24px, 2.5vw, 36px);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s,
                transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s;
}
.auth-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Form ── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.auth-field label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.auth-field input,
.auth-field select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: var(--auth-field);
    border: 1px solid var(--auth-line);
    border-radius: 0;
    color: #fff;
    font-size: 15px;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.auth-field input::placeholder {
    color: rgba(255,255,255,0.28);
    font-size: 14px;
}

.auth-field input:focus,
.auth-field select:focus {
    border-color: var(--auth-accent);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 0 0 3px rgba(255,44,44,0.14);
}

.auth-field-msg {
    display: none;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #f98c7e;
}

.auth-field-msg.is-visible {
    display: block;
}

/* select arrow */
.auth-select-wrap {
    position: relative;
}
.auth-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 7px;
    height: 7px;
    border-right: 1.6px solid rgba(255,255,255,0.65);
    border-bottom: 1.6px solid rgba(255,255,255,0.65);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}
.auth-select-wrap select {
    padding-right: 38px;
    cursor: pointer;
}

.auth-field select option {
    background: #161a22;
    color: #fff;
}

/* ── Submit button ── */
.auth-btn {
    width: 100%;
    height: 56px;
    margin-top: 4px;
    background: var(--auth-accent);
    border: none;
    border-radius: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-btn:hover {
    background: var(--auth-accent-hover);
}

/* ── Footer links ── */
.auth-footer {
    margin-top: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.35);
}

.auth-footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #fff;
}

/* ── Alert / Error ── */
.auth-alert {
    padding: 13px 16px;
    font-size: 14px;
    line-height: 1.55;
    border-left: 3px solid;
}

.auth-alert--error {
    border-color: var(--auth-accent);
    background: rgba(255,44,44,0.07);
    color: #f98c7e;
}

.auth-alert--success {
    border-color: #28c878;
    background: rgba(40,200,120,0.07);
    color: #6edcaa;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .auth-page {
        padding: 120px 20px 60px;
    }
    .auth-layout {
        max-width: 100%;
    }
    .auth-desc {
        white-space: normal;
    }
    .auth-form-grid {
        grid-template-columns: 1fr;
    }
}
