/**
 * Auth Page Styles
 * Modern Split-Screen Design
 */

/* ===== Auth Page Layout ===== */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--space-lg);
}

/* ===== Left Side: Hero/Branding ===== */

.auth-hero {
    display: none; /* Hide hero section */
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.auth-hero-content {
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.auth-logo {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.auth-logo-u {
    color: #ffd700;
    font-size: 4rem;
}

.auth-tagline {
    font-size: 1.25rem;
    margin-bottom: var(--space-2xl);
    opacity: 0.95;
    line-height: 1.6;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.125rem;
    background: rgba(255, 255, 255, 0.15);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.auth-feature-icon {
    font-size: 2rem;
}

/* ===== Right Side: Form Container ===== */

.auth-form-container {
    width: 100%;
    max-width: 500px;
}

.auth-form-wrapper {
    width: 100%;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 3rem;
}

/* ===== Tab Switcher ===== */

.auth-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
}

.auth-tab {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition-base);
}

.auth-tab:hover {
    color: var(--color-text);
}

.auth-tab.active {
    background: white;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* ===== Form Content ===== */

.auth-form-content {
    animation: fadeIn 0.3s ease;
}

.auth-form-content.hidden {
    display: none;
}

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

.auth-form-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* ===== Form Row (for side-by-side inputs) ===== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* ===== Forgot Password Link ===== */

.auth-forgot {
    text-align: right;
    margin-top: calc(-1 * var(--space-sm));
}

.auth-forgot a {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-decoration: none;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

/* ===== Notice Box ===== */

.auth-notice {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: #1e40af;
    line-height: 1.5;
}

.auth-notice-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ===== Divider ===== */

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* ===== Footer Text ===== */

.auth-footer-text {
    margin-top: var(--space-lg);
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.auth-footer-text a {
    color: var(--color-primary);
    text-decoration: none;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* ===== Button Styles (extend existing) ===== */

.btn-full {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ===== Responsive Design ===== */

@media (max-width: 968px) {
    .auth-page {
        flex-direction: column;
    }

    .auth-hero {
        min-height: 40vh;
        padding: var(--space-xl);
    }

    .auth-logo {
        font-size: 2.5rem;
    }

    .auth-logo-u {
        font-size: 3rem;
    }

    .auth-tagline {
        font-size: 1rem;
    }

    .auth-features {
        gap: var(--space-md);
    }

    .auth-feature {
        font-size: 1rem;
        padding: var(--space-sm) var(--space-md);
    }

    .auth-form-container {
        padding: var(--space-xl) var(--space-md);
    }

    .auth-form-wrapper {
        padding: var(--space-xl);
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: 30vh;
    }

    .auth-features {
        display: none; /* Hide features on mobile for cleaner look */
    }
}
