:root {
    --primary: #D4AF37; /* Gold accent for Premium Provider feel */
}

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

body {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #fafbfb;
}

.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.45) 0%, rgba(20, 25, 35, 0.25) 100%);
    z-index: -1;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.glass-login-card {
    background: #ffffff !important; /* Premium solid white card */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    width: 100%;
    max-width: 420px;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08) !important;
    color: #1e293b !important;
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo {
    height: 38px;
    filter: none !important; /* Slate brand logo */
    margin-bottom: 12px;
}

.logo p {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a !important;
    margin-bottom: 4px;
}

.logo .subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #64748b !important;
}

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

label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569 !important;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px;
    color: #0f172a !important;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
    outline: none;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #94a3b8 !important;
}

input[type="text"]:focus,
input[type="password"]:focus {
    background: #f0f7ff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b !important;
    cursor: pointer;
}

.checkbox-label input {
    cursor: pointer;
    accent-color: #0f172a;
}

.forgot-password {
    font-size: 14px;
    color: #64748b !important;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    color: #0f172a !important;
    text-decoration: underline;
}

.btn-login-submit {
    width: 100%;
    padding: 16px;
    background: #0f172a !important; /* Brand Black */
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login-submit:hover {
    background: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15) !important;
}

.btn-login-submit i {
    transition: transform 0.25s ease;
}

.btn-login-submit:hover i {
    transform: translateX(3px);
}

.message-container {
    margin-bottom: 24px;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #059669;
}

.footer-text {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: #64748b !important;
}

@media (max-width: 480px) {
    .glass-login-card {
        padding: 40px 24px;
    }
}

/* Standalone Language Switcher */
.lang-switcher-standalone {
    position: fixed;
    top: 32px;
    right: 40px;
    z-index: 1000;
}

.lang-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 100px;
    color: #0f172a !important;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
}

.lang-btn:hover {
    background: #f8fafc !important;
    transform: translateY(-1px);
}

.lang-btn .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s;
}

.lang-switcher-standalone.active .lang-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px;
    padding: 6px;
    min-width: 150px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.lang-switcher-standalone.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #475569 !important;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-option:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.lang-option.active {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 700;
}

/* RTL Support */
[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', sans-serif;
}

[dir="rtl"] .lang-switcher-standalone {
    right: auto;
    left: 40px;
}

[dir="rtl"] .lang-switcher-standalone .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .btn-login-submit i {
    transform: rotate(180deg);
}

[dir="rtl"] .btn-login-submit:hover i {
    transform: rotate(180deg) translateX(-3px);
}

[dir="rtl"] .password-toggle {
    right: auto;
    left: 20px;
}

[dir="rtl"] input[type="text"],
[dir="rtl"] input[type="password"] {
    text-align: right;
}

[dir="rtl"] label {
    text-align: right;
}

[dir="rtl"] .form-group {
    text-align: right;
}

[dir="rtl"] .logo p,
[dir="rtl"] .logo .subtitle {
    text-align: center;
}
