:root {
    --primary-color: #0390A9;
    --primary-dark: #027a8f;
    --primary-light: #05a8c4;
    --primary-lighter: #06c4e0;
    --gradient-start: #0390A9;
    --gradient-middle: #05a8c4;
    --gradient-end: #06c4e0;
}

body {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 50%, #f0f0f0 100%);
    background-attachment: fixed;
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Support for LTR content */
[dir="ltr"],
.ltr {
    direction: ltr;
    text-align: left;
}

/* Arabic Font Optimization */
* {
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better Arabic Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

p, span, div, a, label, input, textarea, select, button {
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* Warm White Background Pattern with Primary Color */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(3, 144, 169, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(3, 144, 169, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(3, 144, 169, 0.05) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

/* Additional Glow Effects */
body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(3, 144, 169, 0.06) 0%, transparent 70%);
    top: -300px;
    right: -300px;
    z-index: 0;
    pointer-events: none;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-50px, 50px) scale(1.1);
    }
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Warm White Glass Effect for Auth Cards */
.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(3, 144, 169, 0.1);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(3, 144, 169, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    transition: all 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(3, 144, 169, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Glass Effect Override */
.auth-card.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(3, 144, 169, 0.1);
    box-shadow:
        0 8px 32px rgba(3, 144, 169, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* App Logo and Name */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(3, 144, 169, 0.2);
}

.auth-logo-icon i {
    font-size: 20px;
    color: white;
}

.auth-logo-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.auth-header {
    text-align: left;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    line-height: 1.4;
}

.auth-header p {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    line-height: 1.6;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 0.9rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(3, 144, 169, 0.2);
    color: #212529;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    line-height: 1.5;
    border-radius: 8px;
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(3, 144, 169, 0.25);
    outline: none;
    color: #212529;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    transition: all 0.3s ease;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    letter-spacing: 0.01em;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(3, 144, 169, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(3, 144, 169, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(3, 144, 169, 0.3);
}

.alert {
    border-radius: 12px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.alert-success {
    background-color: rgba(3, 144, 169, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #721c24;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.text-muted {
    color: #6c757d !important;
}

.link-primary {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 0.9rem;
}

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

.form-check-label {
    color: #495057;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
}

.form-check-input {
    background-color: #ffffff;
    border: 1px solid rgba(3, 144, 169, 0.3);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(3, 144, 169, 0.25);
}

.invalid-feedback {
    color: #dc3545;
}

/* Decorative Elements */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 20px 20px 0 0;
}

/* Glow Effect */
.auth-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-card:hover::after {
    opacity: 1;
}

/* Arabic Text Direction Support */
.alert ul {
    padding-right: 1.5rem;
    padding-left: 0;
}

.alert li {
    text-align: right;
}

/* Form Input RTL Support */


.form-control[type="email"],
.form-control[type="password"],
.form-control[type="text"] {
}

/* Button RTL Support */
.btn {
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    body {
        font-size: 0.9rem;
    }
}
