/* Mandab Gate Web CSS */
.navbar-brand img {
    height: 30px;
}

/* Custom color scheme */
:root {
    --primary-color: #1e4d8b;
    --secondary-color: #2563ab;
    --mandab-primary: #1e4d8b;
    --mandab-secondary: #2563ab;
    --mandab-light: #f0f4f8;
    --mandab-dark: #0d2847;
}

.mandab-language-switcher {
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.mandab-language-switcher button {
    border: none;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.85);
    color: var(--mandab-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
}

.mandab-language-switcher button:hover {
    background: #ffffff;
    color: var(--mandab-primary);
}

.mandab-language-switcher button.active {
    background: linear-gradient(135deg, var(--mandab-primary) 0%, var(--mandab-secondary) 100%);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(30, 77, 139, 0.3);
}

.mandab-language-switcher--floating {
    position: fixed;
    top: 24px;
    right: 24px;
}

.rtl .mandab-language-switcher--floating {
    right: auto;
    left: 24px;
}

/* Custom Login Page Styling - Mandab Gate Branding */
html body.for-login,
body.for-login,
body.for-login.frappe-card {
    background: linear-gradient(135deg, #1e4d8b 0%, #0d2847 100%) !important;
    min-height: 100vh !important;
    background-attachment: fixed !important;
}

body.for-login .page-card,
body.for-login .login-content .page-card {
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    max-width: 500px !important;
    margin: 40px auto !important;
}

body.for-login .page-card-head {
    background: linear-gradient(135deg, var(--mandab-primary) 0%, var(--mandab-dark) 100%);
    padding: 40px;
    color: white;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

body.for-login .page-card-head .indicator {
    background: white;
    color: var(--mandab-primary);
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

body.for-login .page-card h4 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 0;
}

body.for-login .page-card-body {
    padding: 40px !important;
}

body.for-login .form-group label {
    color: var(--mandab-dark);
    font-weight: 500;
    font-size: 14px;
}

body.for-login .form-control {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9fafb;
    transition: all 0.3s ease;
}

body.for-login .form-control:focus {
    border-color: var(--mandab-primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(30, 77, 139, 0.1);
}

body.for-login .btn-primary,
body.for-login .btn-sm.btn-primary {
    background: linear-gradient(135deg, var(--mandab-primary) 0%, var(--mandab-secondary) 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 24px !important;
    transition: all 0.3s ease;
}

body.for-login .btn-primary:hover,
body.for-login .btn-sm.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 77, 139, 0.3) !important;
}

/* Add logo to login page */
body.for-login .page-card-head::before {
    content: '';
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: url('/assets/mandab_gate/images/logo.png') center/contain no-repeat;
}

/* Responsive Design */
@media (max-width: 768px) {
    body.for-login .page-card {
        margin: 20px;
        border-radius: 12px;
    }

    body.for-login .page-card-head {
        padding: 30px 20px;
    }

    body.for-login .page-card h4 {
        font-size: 22px;
    }

    body.for-login .page-card-body {
        padding: 30px 20px !important;
    }
}
