/* ========================================
   Auth Page — 로그인/회원가입
   ======================================== */

.auth-page {
    background: #0B1120;
    min-height: 100vh;
    font-family: var(--font-family);
    color: #E2E8F0;
    display: flex;
    flex-direction: column;
}

/* --- Auth Container --- */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 48px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 48px 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo a {
    font-size: 28px;
    font-weight: 500;
    color: #FFFFFF;
    text-decoration: none;
}

.auth-logo a strong {
    font-weight: 800;
    color: #93B4FF;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-bottom: 32px;
}

/* --- Tab Toggle --- */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
}

.auth-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    border: none;
    background: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.auth-tab.active {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.auth-tab:not(.active):hover {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Form --- */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: authFadeIn 0.2s ease-out;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-field {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.25);
}

.auth-input {
    width: 100%;
    padding: 13px 14px 13px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 15px;
    font-family: var(--font-family);
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: rgba(37, 99, 235, 0.5);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Type selector */
.auth-type-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.auth-type {
    flex: 1;
    position: relative;
}

.auth-type input {
    position: absolute;
    opacity: 0;
}

.auth-type label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-type label i {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
}

.auth-type label span {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.auth-type input:checked + label {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.auth-type input:checked + label i {
    color: #93B4FF;
}

.auth-type input:checked + label span {
    color: #FFFFFF;
    font-weight: 600;
}

/* Options row */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.auth-remember input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.auth-forgot {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.15s;
}

.auth-forgot:hover {
    color: var(--primary);
}

/* Submit button */
.auth-submit {
    width: 100%;
    padding: 14px 0;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.auth-divider span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

/* Social buttons */
.auth-social {
    display: flex;
    gap: 10px;
}

.auth-social-btn {
    flex: 1;
    padding: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
}

.auth-social-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
}

.auth-social-btn.kakao { border-color: rgba(254, 229, 0, 0.2); }
.auth-social-btn.kakao:hover { background: rgba(254, 229, 0, 0.1); color: #FEE500; }

.auth-social-btn.naver { border-color: rgba(3, 199, 90, 0.2); }
.auth-social-btn.naver:hover { background: rgba(3, 199, 90, 0.1); color: #03C75A; }

.auth-social-btn.google { border-color: rgba(255, 255, 255, 0.1); }

/* Terms */
.auth-terms {
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.6;
    text-align: center;
}

.auth-terms a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .auth-card {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .auth-container {
        padding: 80px 16px 32px;
    }

    .auth-type-group {
        gap: 6px;
    }

    .auth-social {
        flex-direction: column;
    }
}
