/* auth.css - تصميم صفحة الدخول والتسجيل */

:root {
    --primary-color: #dc3545;
    --secondary-color: #2c3e50;
    --gold-color: #D4AF37;
}

/* Auth Section */
.auth-section {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Auth Card */
.auth-card {
    position: relative;
    z-index: 2;
    border-radius: 15px !important;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.auth-card .card-body {
    background: rgba(255, 255, 255, 0.95);
}

/* Badge */
.badge-french {
    background: linear-gradient(to right, #0055A4, white, #EF4135);
    color: #333;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    margin-left: 5px;
    border: 1px solid var(--gold-color);
}

/* Titles */
.auth-title {
    font-family: 'Georgia', serif;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Form Elements */
.input-group-text {
    border-right: none;
    background: white;
}

.form-control {
    border-left: none;
    padding: 12px 15px;
}

.form-control:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    border-radius: 5px;
}

.toggle-password {
    border-left: none;
    background: white;
}

.toggle-password:hover {
    background: white;
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #c82333);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Forgot Link */
.forgot-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--primary-color);
}

/* Divider */
.auth-divider {
    border-top: 1px solid #dee2e6;
}

.auth-divider span {
    position: relative;
    top: -12px;
}

/* Social Login */
.social-login .btn {
    transition: all 0.3s;
}

.social-login .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Demo Credentials */
.demo-credentials {
    background: #f8f9fa;
    border-radius: 8px;
    font-family: monospace;
}

/* Password Strength */
.password-strength .progress {
    background: #e9ecef;
}

.password-strength .progress-bar {
    transition: width 0.3s ease;
}

/* Modal */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    padding: 15px 20px;
}

.modal-header .btn-close-white {
    filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-section {
        padding: 20px 0;
    }
    
    .auth-card .card-body {
        padding: 30px !important;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .demo-credentials .row {
        flex-direction: column;
    }
    
    .demo-credentials .col-6 {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .auth-card .card-body {
        padding: 20px !important;
    }
    
    .social-login .row {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-login .col-6 {
        width: 100%;
    }
    
    .form-control {
        font-size: 16px; /* منع zoom على الجوال */
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-card {
    animation: slideInUp 0.5s ease;
}

/* Loading Spinner */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    left: 50%;
    margin-left: -10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}