/**
 * Authentication Pages Styling
 * Split-screen design with gradient background
 */

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

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

/* ==================== LEFT SIDE - ILLUSTRATION ==================== */
.auth-left {
    background: var(--gradient-main);
    padding: var(--spacing-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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.05'%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");
    opacity: 0.1;
}

.auth-illustration {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.auth-brand {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.auth-brand i {
    font-size: 3rem;
}

.auth-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-3xl);
    line-height: 1.6;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    animation: fadeIn 0.8s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.2s; opacity: 0; }
.feature-item:nth-child(2) { animation-delay: 0.4s; opacity: 0; }
.feature-item:nth-child(3) { animation-delay: 0.6s; opacity: 0; }

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.feature-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
}

/* ==================== RIGHT SIDE - FORM ==================== */
.auth-right {
    padding: var(--spacing-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
}

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

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-2xl);
}

/* ==================== FORM STYLING ==================== */
.auth-form {
    margin-bottom: var(--spacing-xl);
}

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

.input-group {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-neumorphic-inset);
    overflow: hidden;
    transition: all var(--transition-base);
}

.input-group:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.input-prefix {
    padding: 0.875rem 1rem;
    background: var(--gray-100);
    color: var(--gray-600);
    font-weight: 600;
    border-right: 2px solid var(--gray-200);
}

.input-group .form-control {
    border: none;
    box-shadow: none;
    flex: 1;
}

.input-group .form-control:focus {
    box-shadow: none;
}

.form-text {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: var(--spacing-xs);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.form-checkbox span {
    color: var(--gray-700);
    font-size: 0.95rem;
}

.form-checkbox a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: underline;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.alert p {
    margin: 0;
    margin-bottom: 0.5rem;
}

.alert p:last-child {
    margin-bottom: 0;
}

.alert i {
    margin-right: var(--spacing-sm);
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border: 2px solid #FCA5A5;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 2px solid #6EE7B7;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 2px solid #93C5FD;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border: 2px solid #FCD34D;
}

/* ==================== AUTH FOOTER ==================== */
.auth-footer {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--gray-200);
}

.auth-footer p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-sm);
}

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

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

/* ==================== SOCIAL LOGIN ==================== */
.social-login {
    margin-top: var(--spacing-lg);
}

.divider {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    color: var(--gray-500);
    font-size: 0.95rem;
}

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

.btn-google {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-google:hover {
    background: var(--gray-50);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        padding: var(--spacing-2xl);
        min-height: 300px;
    }
    
    .auth-brand {
        font-size: 2rem;
    }
    
    .auth-tagline {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-2xl);
    }
    
    .auth-features {
        gap: var(--spacing-lg);
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .feature-text h4 {
        font-size: 1rem;
    }
    
    .feature-text p {
        font-size: 0.875rem;
    }
    
    .auth-right {
        padding: var(--spacing-2xl);
    }
}

@media (max-width: 768px) {
    .auth-body {
        padding: var(--spacing-md);
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: var(--spacing-xl);
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-right {
        padding: var(--spacing-lg);
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.95rem;
    }
}
