/* ============================================
   LOGIN PAGE STYLES - صفحة تسجيل الدخول
   Al-Eman Group 2025
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #005BA1 0%, #009640 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* ===== LOGIN CONTAINER ===== */
.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.5s ease;
    position: relative;
    z-index: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== LOGIN HEADER ===== */
.login-header {
    background: linear-gradient(135deg, #005BA1 0%, #009640 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.login-header .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.login-header .logo-container img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.login-header .logo-container img:hover {
    transform: scale(1.1);
}

.login-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.login-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.95;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* ===== LOGIN BODY ===== */
.login-body {
    padding: 2.5rem 2rem;
}

/* ===== FORM STYLES ===== */
.form-label {
    font-weight: 600;
    color: #1C1C1C;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.input-group {
    display: flex;
    width: 100%;
    margin-bottom: 1rem;
}

.input-group-text {
    background: #F1F1F1;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    color: #005BA1;
}

[dir="rtl"] .input-group-text {
    border-right: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 12px 12px 0;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    background: white;
}

[dir="rtl"] .form-control {
    border-left: 2px solid #e9ecef;
    border-right: none;
    border-radius: 12px 0 0 12px;
}

.form-control:focus {
    outline: none;
    border-color: #005BA1;
    box-shadow: 0 0 0 4px rgba(0, 91, 161, 0.1);
}

.form-control::placeholder {
    color: #999;
    opacity: 0.7;
}

/* ===== BUTTON STYLES ===== */
.btn-login {
    background: linear-gradient(135deg, #005BA1 0%, #009640 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 91, 161, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* ===== ALERT STYLES ===== */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

/* ===== LINKS ===== */
.forgot-password-link {
    text-align: center;
    margin: 1rem 0;
}

.forgot-password-link a {
    color: #005BA1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-password-link a:hover {
    color: #009640;
    text-decoration: underline;
}

.back-to-website {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.back-to-website a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-website a:hover {
    color: #005BA1;
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.language-switcher-login .lang-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.language-switcher-login .lang-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.language-switcher-login .lang-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
}

.language-switcher-login .lang-flag {
    font-size: 1.2rem;
}

.language-switcher-login .lang-name {
    font-size: 0.85rem;
}

.language-switcher-login .lang-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    body {
        padding: 0.5rem;
    }
    
    .login-container {
        border-radius: 15px;
        max-width: 100%;
    }
    
    .login-header {
        padding: 2rem 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-header .logo-container img {
        height: 35px;
    }
    
    .language-switcher-login {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .language-switcher-login .lang-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .language-switcher-login .lang-name {
        font-size: 0.75rem;
    }
    
    .login-body {
        padding: 2rem 1.5rem;
    }
    
    .form-control,
    .input-group-text {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   END OF LOGIN PAGE STYLES
   ============================================ */
