:root {
    --navy: #082f60;
    --blue: #087fc2;
    --blue-dark: #07558f;
    --cyan: #18a8e5;
    --gold: #f3b91d;
    --ink: #173b5b;
    --muted: #71869a;
    --line: #d9e7f1;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    color: var(--ink);
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    background: #b9dcf4 url('../images/login-background.jpg') center center / cover fixed no-repeat;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(110deg, rgba(4,48,91,.06), rgba(255,255,255,.10) 48%, rgba(4,48,91,.04));
}
.login-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
}
.login-card {
    width: min(100%, 440px);
    padding: 25px 34px 20px;
    border: 1px solid rgba(255,255,255,.94);
    border-radius: 24px;
    background: rgba(255,255,255,.91);
    box-shadow: 0 24px 70px rgba(5,48,91,.25), 0 5px 18px rgba(5,48,91,.09), inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
.login-header { text-align: center; margin-bottom: 20px; }
.brand-logo {
    display: block;
    width: 100%;
    max-width: 310px;
    height: 170px;
    object-fit: contain;
    margin: 0 auto 2px;
    border-radius: 13px;
    filter: drop-shadow(0 5px 10px rgba(5,65,115,.15));
}
.brand-logo-full {
    background: #03183f;
}
.brand-name {
    color: #0a3768;
    font-family: Arial, Tahoma, sans-serif;
    font-size: 29px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.8px;
}
.brand-name span { color: #e9a900; }
.brand-tagline {
    margin-top: 5px;
    color: #285779;
    font-size: 12px;
    font-weight: 700;
}
.header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 13px auto 12px;
    width: 66%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9dce9, transparent);
}
.header-divider span {
    width: 30px;
    height: 3px;
    border-radius: 4px;
    background: var(--gold);
}
.login-header h1 { margin: 0; color: #123f67; font-size: 19px; font-weight: 800; }
.login-header p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.login-tabs {
    display: flex;
    gap: 5px;
    padding: 4px;
    margin-bottom: 18px;
    border: 1px solid #dfebf3;
    border-radius: 12px;
    background: rgba(235,245,252,.92);
}
.login-tab {
    flex: 1;
    min-height: 39px;
    padding: 8px 5px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6b8194;
    font: 500 11px Vazirmatn, Tahoma, sans-serif;
    cursor: pointer;
    transition: .18s ease;
}
.login-tab.active {
    color: #075e99;
    background: #fff;
    font-weight: 700;
    box-shadow: 0 2px 9px rgba(34,91,132,.12);
}
.form-field { margin-bottom: 14px; }
.login-card label { display: block; margin: 0 0 7px; color: #31536d; font-size: 12px; font-weight: 700; }
.login-card input {
    display: block;
    width: 100%;
    height: 45px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    background: rgba(255,255,255,.96);
    color: #18344b;
    font: 12px Vazirmatn, Tahoma, sans-serif;
    transition: border-color .18s, box-shadow .18s;
}
.login-card input::placeholder { color: #a0b0bd; }
.login-card input:focus { border-color: #36a5df; box-shadow: 0 0 0 3px rgba(24,168,229,.14); }
.password-wrapper { position: relative; }
.password-wrapper input { padding-left: 65px; }
.show-password {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 4px 5px;
    border: 0;
    background: none;
    color: var(--blue-dark);
    font: 11px Vazirmatn, Tahoma, sans-serif;
    cursor: pointer;
}
.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    margin-top: 5px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(105deg, #0788cb, #07558f);
    color: #fff;
    font: 700 13px Vazirmatn, Tahoma, sans-serif;
    box-shadow: 0 7px 17px rgba(7,91,148,.22);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .15s;
}
.login-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(7,91,148,.27); }
.login-button:disabled { opacity: .55; cursor: not-allowed; }
.login-message { display: none; margin: 0 0 13px; padding: 9px 11px; border-radius: 9px; font-size: 11px; line-height: 1.8; }
.login-message.error { display: block; color: #a72c35; background: #fff0f0; border: 1px solid #f8d8d8; }
.login-message.success { display: block; color: #14734a; background: #edfbf3; border: 1px solid #d1f0df; }
.validation-summary-errors { margin-bottom: 12px; color: #ad3039; font-size: 11px; line-height: 1.8; }
.validation-summary-errors:empty { display: none; }
.otp-area { margin-top: 17px; padding-top: 16px; border-top: 1px solid #e3edf4; }
.timer { margin: 12px 0 5px; text-align: center; color: #71869a; font-size: 11px; }
.timer strong { margin-right: 5px; color: #0879bd; font-size: 13px; direction: ltr; unicode-bidi: isolate; }
.resend-button { display: block; margin: 0 auto; padding: 5px 10px; border: 0; background: transparent; color: #0879bd; font: 11px Vazirmatn, Tahoma, sans-serif; cursor: pointer; }
.resend-button:disabled { color: #a5b4c0; cursor: not-allowed; }
.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 13px;
    border-top: 1px solid rgba(210,226,238,.95);
    color: #7890a3;
    font-size: 10px;
}
.footer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(243,185,29,.15); }
.is-hidden { display: none !important; }
@media (max-width: 600px) {
    body { background-position: 42% center; background-attachment: scroll; }
    body::before { background: rgba(225,241,252,.35); }
    .login-page { padding: 16px 13px; }
    .login-card { width: min(100%, 410px); padding: 21px 21px 17px; border-radius: 20px; background: rgba(255,255,255,.95); }
    .brand-logo-full { width: 100%; max-width: 280px; height: 150px; }
    .brand-name { font-size: 26px; }
}
@media (max-height: 740px) and (min-width: 601px) {
    .login-page { align-items: flex-start; }
    .login-card { padding-top: 15px; padding-bottom: 14px; }
    .brand-logo-full { max-width: 250px; height: 135px; }
    .brand-name { font-size: 25px; }
    .login-header { margin-bottom: 13px; }
    .header-divider { margin: 8px auto; }
    .login-footer { margin-top: 12px; padding-top: 9px; }
}
