/**
 * Auth Pages — Login & Register Styles
 */

.auth-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 50%, var(--primary-900) 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    animation: authBgPulse 15s ease-in-out infinite alternate;
}

@keyframes authBgPulse {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(2%, -2%) rotate(5deg); }
}

.auth-container {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left side — Branding */
.auth-branding {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-12);
    color: white;
}

.auth-branding__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-10);
}

.auth-branding__logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--text-xl);
}

.auth-branding__logo-text {
    font-size: var(--text-2xl);
    font-weight: 800;
}

.auth-branding__headline {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, white 0%, var(--primary-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-branding__desc {
    font-size: var(--text-lg);
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 420px;
}

.auth-branding__features {
    margin-top: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.auth-branding__feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--gray-300);
}

.auth-branding__feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-400);
    flex-shrink: 0;
    font-size: 14px;
}

/* Right side — Form */
.auth-form-wrapper {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.auth-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.auth-card__title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.auth-card__subtitle {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-8);
}

/* Google OAuth Button */
.btn--google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

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

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

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

/* Auth form inputs */
.auth-card .form-input {
    padding: 0.75rem 1rem;
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

.auth-card .form-input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-card .btn--primary {
    width: 100%;
    padding: 0.875rem;
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

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

.auth-links a {
    color: var(--primary-600);
    font-weight: 600;
}
.auth-links a:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* Password toggle */
.password-wrapper {
    position: relative;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: var(--space-1);
}
.password-toggle:hover { color: var(--gray-600); }

/* Responsive */
@media (max-width: 1024px) {
    .auth-branding { display: none; }
    .auth-container { justify-content: center; }
    .auth-form-wrapper { width: 100%; max-width: 440px; }
}

@media (max-width: 640px) {
    .auth-form-wrapper { padding: var(--space-4); }
    .auth-card { padding: var(--space-6); }
    .auth-branding__headline { font-size: var(--text-2xl); }
}
