/* 
   Premium Login Page Design
   Theme: Professional Light & Clean
   Character: Trustworthy, Minimal, High-Contrast
*/

:root {
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --bg-soft: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #020617;
    /* Deepest blue-black for high contrast */
    --text-muted: #475569;
    /* Much darker grey for subtitles */
    --input-border: #cbd5e1;
    /* Slightly darker border for better definition */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body.login-container {
    min-height: 100vh;
    background-color: var(--bg-soft) !important;
    background-image:
        radial-gradient(circle at 2px 2px, #e2e8f0 1px, transparent 0) !important;
    background-size: 32px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: 'Noto Kufi Arabic', sans-serif !important;
}

body.login-container .login-form-container {
    position: relative;
    z-index: 10;
    width: 95%;
    max-width: 420px;
    padding: 3rem;
    background: var(--card-bg) !important;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-large);
    animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    width: 100px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    transition: transform 0.3s ease;
}

.login-title {
    color: var(--text-main);
    font-size: 1.875rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
}

/* Input Styles */
.input-group {
    margin-bottom: 1.25rem;
}

.input-label {
    display: block;
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--input-border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

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

.login-button {
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.75rem;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.login-button:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.login-button:active {
    transform: scale(0.98);
}

/* Feedback Messages */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.alert-success {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    color: #10b981;
}

.login-footer {
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-align: center;
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 2rem;
        margin: 1rem;
        border-radius: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-form-container {
        padding: 2rem;
        margin: 1.5rem;
        border-radius: 1.5rem;
    }

    .login-title {
        font-size: 1.75rem;
    }
}