/* ========== Login Page Custom Styles ========== */
:root {
    --login-bg: linear-gradient(135deg, rgba(8, 43, 69, 0.48) 0%, rgba(9, 46, 73, 0.58) 48%, rgba(6, 33, 52, 0.72) 100%);
    --card-bg: rgba(255, 255, 255, 0.78);
    --text-dark: #334155;
    --text-light: #94a3b8;
    --primary-blue: #1b8adb;
    --primary-blue-hover: #1472b5;
    --input-bg: rgba(255, 255, 255, 0.74);
    --input-border: rgba(148, 163, 184, 0.26);
    --panel-box-bg: rgba(255, 255, 255, 0.15);
    --panel-box-hover: rgba(255, 255, 255, 0.22);
    --panel-border: rgba(255, 255, 255, 0.22);
}

body.login-body {
    background-color: #0d324d;
    background-image: var(--login-bg), url('../b.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    font-family: 'Tajawal', sans-serif;
    color: #fff;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

body.login-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 22%, transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(2, 22, 36, 0.26) 100%);
    pointer-events: none;
}

* {
    box-sizing: border-box;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(7, 30, 47, 0.16) 0%, rgba(10, 40, 62, 0.08) 100%);
    backdrop-filter: blur(22px) saturate(140%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(3, 19, 31, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    position: relative;
    z-index: 1;
}

/* Left Side: Login Card */
.login-card-container {
    width: 400px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(244, 248, 252, 0.64) 100%);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark);
    flex-shrink: 0;
    backdrop-filter: blur(22px) saturate(145%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.login-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(227, 241, 253, 0.72) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-size: 40px;
    border: 1px solid rgba(27, 138, 219, 0.10);
    box-shadow: 0 14px 34px rgba(27, 138, 219, 0.14);
}

.login-logo.brand-logo {
    width: min(100%, 250px);
    height: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.login-logo.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sys-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f2f46;
    margin: 0 0 10px 0;
    text-align: center;
}

.sys-subtitle {
    font-size: 13px;
    color: #475569;
    text-align: center;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.login-form {
    width: 100%;
}

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

.input-group label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Space for icon on left for LTR text */
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    color: #0f172a;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    text-align: left; /* English input */
    direction: ltr;
    backdrop-filter: blur(8px);
}

.input-wrapper input::placeholder {
    color: #64748b;
}

.input-wrapper input:focus {
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 0 4px rgba(27, 138, 219, 0.12), 0 10px 24px rgba(15, 23, 42, 0.08);
}

.input-icon {
    position: absolute;
    left: 15px; /* LTR position */
    color: var(--primary-blue);
    font-size: 14px;
    pointer-events: none;
}

.alerts-container {
    margin-bottom: 20px;
}

.alert-item {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 12px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.alert-item i {
    color: #94a3b8;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1b8adb 0%, #1472b5 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 14px 28px rgba(27, 138, 219, 0.22);
}

.btn-login:hover {
    background: linear-gradient(135deg, #2296ed 0%, #1472b5 100%);
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(27, 138, 219, 0.28);
}

.footer-note {
    margin-top: auto;
    font-size: 11px;
    color: #475569;
    text-align: center;
    padding-top: 20px;
    line-height: 1.5;
}

/* Right Side: Info Panel */
.info-panel {
    flex-grow: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
}

.hospital-tag {
    align-self: flex-start;
    background: var(--panel-box-bg);
    border: 1px solid var(--panel-border);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    backdrop-filter: blur(12px) saturate(130%);
    box-shadow: 0 10px 24px rgba(4, 21, 35, 0.14);
}

.main-title {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-shadow: 0 10px 30px rgba(4, 21, 35, 0.34);
}

.main-desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.96);
    margin: 0 0 40px 0;
    max-width: 90%;
    text-shadow: 0 4px 18px rgba(4, 21, 35, 0.22);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.feature-card {
    background: var(--panel-box-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(12px) saturate(130%);
    transition: transform 0.3s ease;
    box-shadow: 0 14px 28px rgba(4, 21, 35, 0.12);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--panel-box-hover);
}

.feature-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 800;
}

.feature-card p {
    margin: 0;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.5;
}

.login-info-box {
    background: var(--panel-box-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(14px) saturate(130%);
    box-shadow: 0 18px 34px rgba(4, 21, 35, 0.14);
}

.login-info-box .icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1b8adb 0%, #1472b5 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 12px 24px rgba(27, 138, 219, 0.24);
}

.login-info-text h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
}

.login-info-text p {
    margin: 0;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.6;
}

.error-alert {
    background: rgba(254, 242, 242, 0.88);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #ef4444;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

/* Responsive */
@media (max-width: 900px) {
    .login-wrapper {
        max-width: 480px;
        min-height: auto;
    }
    
    .login-card-container {
        width: 100%;
        padding: 34px 24px;
    }
    
    .info-panel {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 30px;
    }
}
