﻿/* =============================================================================
   AUTH PAGES STYLES - VectaJus Design System v2.0
   ============================================================================= */

.auth-page {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    position: relative;
    z-index: 1;
}

.auth-card {
    padding: var(--space-12);
    display: flex;
    flex-direction: column;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-header .logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-8);
    text-decoration: none;
}

.auth-header .logo i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: var(--text-inverse);
    font-size: var(--text-lg);
}

.auth-header h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.auth-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.auth-body {
    flex: 1;
}

.btn-google {
    width: 100%;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: var(--border-2) solid var(--border-primary);
    font-weight: var(--font-semibold);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    font-size: var(--text-base);
}

.btn-google:hover {
    border-color: var(--color-primary-500);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

.btn-google:focus-visible {
    outline: var(--border-2) solid var(--border-focus);
    outline-offset: 2px;
}

.btn-google i {
    font-size: var(--text-xl);
}

.divider {
    position: relative;
    text-align: center;
    margin: var(--space-6) 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-primary);
}

.divider span {
    position: relative;
    background: var(--bg-primary);
    padding: 0 var(--space-4);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: var(--space-2);
    transition: var(--transition-fast);
    border-radius: var(--radius-md);
}

.password-toggle:hover {
    color: var(--color-primary-600);
    background: var(--bg-secondary);
}

.password-toggle:focus-visible {
    outline: var(--border-2) solid var(--border-focus);
    outline-offset: 2px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    user-select: none;
}

.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-primary-600);
}

.checkbox input[type="checkbox"]:focus-visible {
    outline: var(--border-2) solid var(--border-focus);
    outline-offset: 2px;
}

.checkbox span {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.link {
    color: var(--text-link);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: var(--transition-fast);
}

.link:hover {
    color: var(--text-link-hover);
    text-decoration: underline;
}

.link:focus-visible {
    outline: var(--border-2) solid var(--border-focus);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.auth-footer {
    text-align: center;
    padding-top: var(--space-8);
    border-top: var(--border-1) solid var(--border-primary);
    margin-top: var(--space-8);
}

.auth-footer p {
    color: var(--text-secondary);
    margin: 0;
    font-size: var(--text-sm);
}

.auth-footer a {
    color: var(--text-link);
    font-weight: var(--font-semibold);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer a:focus-visible {
    outline: var(--border-2) solid var(--border-focus);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.auth-illustration {
    background: var(--gradient-primary);
    padding: var(--space-12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}

.auth-illustration::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.illustration-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.illustration-content i {
    font-size: 5rem;
    margin-bottom: var(--space-8);
    opacity: 0.95;
    display: block;
}

.illustration-content h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    color: var(--text-inverse);
}

.illustration-content p {
    font-size: var(--text-lg);
    opacity: 0.95;
    line-height: var(--leading-relaxed);
    max-width: 360px;
    margin: 0 auto;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: var(--border-1) solid rgba(255, 255, 255, 0.2);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    opacity: 0.9;
}

/* Form in Auth Pages */
.auth-body .form-control {
    background: var(--bg-primary);
    border-color: var(--border-primary);
}

.auth-body .form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Responsive */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    
    .auth-illustration {
        display: none;
    }
    
    .auth-card {
        padding: var(--space-8);
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: var(--space-4);
    }
    
    .auth-card {
        padding: var(--space-6);
    }
    
    .form-options {
        flex-direction: column;
        gap: var(--space-4);
        align-items: flex-start;
    }
    
    .auth-header h2 {
        font-size: var(--text-xl);
    }
}

