/* ============================================================================
   AUTH PAGES — Login, Register, Forgot Password
   ============================================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--color-gray-50);
}

/* --- Left Panel (Branding) --- */
.auth-brand {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 30%, #2563eb 70%, #7c3aed 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139,92,246,0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(59,130,246,0.1) 0%, transparent 40%);
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 480px;
}

.auth-brand-logo {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-8);
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.auth-brand-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
    line-height: 1.1;
}

.auth-brand-subtitle {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.7);
    line-height: var(--leading-relaxed);
}

.auth-brand-features {
    margin-top: var(--space-10);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-align: left;
}

.auth-brand-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: rgba(255,255,255,0.8);
    font-size: var(--text-md);
}

.auth-brand-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

/* Floating shapes background */
.auth-brand-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.06;
}

.auth-brand-shapes div {
    position: absolute;
    border: 2px solid white;
    border-radius: var(--radius-xl);
}

.auth-brand-shapes div:nth-child(1) { width: 200px; height: 200px; top: 10%; left: -5%; transform: rotate(15deg); }
.auth-brand-shapes div:nth-child(2) { width: 150px; height: 150px; top: 60%; right: -3%; transform: rotate(-20deg); }
.auth-brand-shapes div:nth-child(3) { width: 100px; height: 100px; bottom: 15%; left: 20%; transform: rotate(35deg); }
.auth-brand-shapes div:nth-child(4) { width: 80px; height: 80px; top: 20%; right: 15%; transform: rotate(-10deg); border-radius: 50%; }

/* --- Right Panel (Form) --- */
.auth-form-panel {
    width: 520px;
    min-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-10);
    background: var(--color-white);
}

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

.auth-form-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-form-title {
    font-size: var(--text-2xl);
    font-weight: 750;
    color: var(--color-gray-900);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-2);
}

.auth-form-description {
    font-size: var(--text-base);
    color: var(--color-gray-500);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-6) 0;
    color: var(--color-gray-400);
    font-size: var(--text-sm);
}

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

.auth-google-btn {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-google-btn:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-400);
}

.auth-google-btn svg {
    width: 20px;
    height: 20px;
}

.auth-submit-btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-accent-600));
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}

.auth-submit-btn:hover {
    box-shadow: 0 4px 12px rgba(37,99,235,0.4);
    transform: translateY(-1px);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-form-footer {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.auth-form-footer a {
    color: var(--color-primary-600);
    font-weight: 600;
}

.auth-form-footer a:hover {
    color: var(--color-primary-700);
}

.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-gray-600);
    cursor: pointer;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary-600);
}

.auth-forgot-link {
    color: var(--color-primary-600);
    font-weight: 500;
    font-size: var(--text-sm);
}

/* --- Alert --- */
.auth-alert {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.auth-alert-error {
    background: var(--color-danger-50);
    color: var(--color-danger-700);
    border: 1px solid var(--color-danger-100);
}

.auth-alert-success {
    background: var(--color-success-50);
    color: var(--color-success-700);
    border: 1px solid var(--color-success-100);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .auth-brand {
        display: none;
    }

    .auth-form-panel {
        width: 100%;
        min-width: auto;
    }
}
