/* Login Page Specific Styles - FIXED, ISOLATED & SIMPLIFIED */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

body.login-page {
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', sans-serif;
    background-color: #f0f2f5;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
}

.login-container {
    background-color: white;
    width: 450px;
    /* Reduced width for single column */
    /* Remove fixed height to fit content nicely */
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    /* Stack clear */
    overflow: hidden;
    position: relative;
    padding: 40px;
    /* Add internal padding */
}

/* Form Section */
.login-form-section {
    width: 100%;
    /* Remove padding/flex properties that were for the split layout */
    display: block;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #1e293b;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.login-header p {
    color: #64748b;
    margin: 0;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 500;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
    margin-top: 10px;
}

.login-btn:hover {
    background-color: #2563eb;
}

/* Alert Styles */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.alert-error {
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

@media (max-width: 500px) {
    .login-container {
        width: 90%;
        padding: 30px;
    }
}