/* Authentication Pages Styles */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #e11d48;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    direction: rtl;
}

.auth-container {
    min-height: 100vh;
}

.auth-form-container {
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    position: relative;
}

/* Brand Logo */
.brand-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.brand-logo:hover {
    color: var(--primary-dark);
}

/* Auth Titles */
.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
}

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

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

/* Form Controls */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-control:invalid {
    border-color: var(--danger-color);
}

.form-control:valid {
    border-color: var(--success-color);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Input Groups */
.input-group {
    position: relative;
}

.input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-left: none;
    color: var(--gray-600);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.input-group .form-control {
    border-right: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.input-group .form-control:focus + .input-group-text,
.input-group .form-control:focus {
    border-color: var(--primary-color);
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.password-strength .progress {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
}

.password-strength .progress-bar {
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--gray-300);
    color: var(--dark-color);
}

.btn-outline-dark {
    border: 2px solid var(--dark-color);
    color: var(--dark-color);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--dark-color);
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Links */
.forgot-password-link,
.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.forgot-password-link:hover,
.signup-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Social Login */
.social-login {
    margin-top: 2rem;
}

.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-300);
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Auth Background */
.auth-bg {
    background-image: url('../images/register-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 100vh;
}

.auth-bg.register-bg {
    background-image: url('../images/register-bg.jpg');
    background-size: cover;
    background-position: center;
    /* Fallback gradient if image fails */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(225, 29, 72, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.auth-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 400px;
}

/* Testimonial */
.testimonial {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
    max-width: 400px;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

/* Features List */
.features-list {
    max-width: 300px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    text-align: right;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.feature-item i {
    margin-left: 0.75rem;
}

/* Form Validation States */
.is-valid {
    border-color: var(--success-color) !important;
}

.is-invalid {
    border-color: var(--danger-color) !important;
}

.valid-feedback {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-right: 4px solid var(--danger-color);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-right: 4px solid var(--success-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-right: 4px solid var(--warning-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form {
    animation: fadeIn 0.6s ease-out;
}

/* Loading States */
.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-form-container {
        padding: 1.5rem;
        min-height: 100vh;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .form-section {
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .auth-form-container {
        padding: 1rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .brand-logo {
        font-size: 1.75rem;
    }
}
