/* Custom Authentication Pages Styling */
/* نفس تصميم وألوان صفحة تسجيل الدخول */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700&display=swap');

/* Global Styles */
* {
    font-family: 'Tajawal', sans-serif !important;
}

html, body {
    direction: rtl !important;
    text-align: right !important;
}

/* Background Gradient - نفس ألوان Filament Amber */
.auth-background {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    min-height: 100vh;
}

/* Auth Card - شفافية وتأثير blur */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Primary Button - نفس ألوان Amber */
.primary-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

/* Input Fields */
.input-field {
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    background: white;
    font-size: 16px; /* منع zoom في الجوال */
}

.input-field:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
    outline: none;
}

.input-field::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Links */
.back-link {
    color: #6b7280;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-link:hover {
    color: #f59e0b;
    text-decoration: underline;
}

/* Logo Container */
.logo-container {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Title Styling */
.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #fef3c7;
    font-size: 0.875rem;
    font-weight: 400;
}

/* Error Messages */
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Success Messages */
.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #166534;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Password Requirements */
.password-requirements {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
}

.password-requirements h4 {
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.password-requirements ul {
    color: #b45309;
    font-size: 0.75rem;
    list-style: none;
    padding: 0;
}

.password-requirements li {
    margin-bottom: 0.25rem;
}

/* Footer */
.auth-footer {
    color: #fef3c7;
    font-size: 0.75rem;
    text-align: center;
    margin-top: 2rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 640px) {
    .auth-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
    }
}

/* Animation for form entrance */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: slideInUp 0.6s ease-out;
}

/* Loading State */
.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.primary-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Focus Styles for Accessibility */
.input-field:focus,
.primary-btn:focus,
.back-link:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .auth-card {
        background: white;
        border: 2px solid #000;
    }
    
    .primary-btn {
        background: #000;
        color: white;
    }
    
    .input-field {
        border: 2px solid #000;
    }
}
