.login-page { min-height: 100vh; overflow-x: hidden; background: #f5f7fb; }
.login-page #navbar-main,
.login-page body > footer,
.login-page .main-content + footer { display: none !important; }
.login-page .main-content { min-height: 100vh; }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, 1.08fr) minmax(440px, .92fr); }
.login-showcase { position: relative; display: flex; min-height: 100vh; overflow: hidden; flex-direction: column; justify-content: space-between; padding: clamp(34px,5vw,68px); color: #fff; background: linear-gradient(145deg,#102451 0%,#1f4590 52%,#4f5fd8 100%); isolation: isolate; }
.login-showcase::before { position: absolute; z-index: -1; right: -14%; bottom: -24%; width: 570px; height: 570px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; box-shadow: 0 0 0 80px rgba(255,255,255,.035),0 0 0 160px rgba(255,255,255,.025); }
.login-showcase::after { position: absolute; z-index: -1; top: 18%; right: 12%; width: 6px; height: 6px; border-radius: 50%; background: #ff7aa8; content: ""; box-shadow: 52px 72px 0 #61dafb,-74px 128px 0 #ffd166,95px 205px 0 rgba(255,255,255,.55),-165px -35px 0 rgba(255,255,255,.4); }
.login-showcase-glow { position: absolute; z-index: -2; border-radius: 50%; filter: blur(5px); }
.login-showcase-glow-one { top: -180px; left: -140px; width: 430px; height: 430px; background: rgba(69,105,230,.38); }
.login-showcase-glow-two { right: -160px; bottom: 4%; width: 400px; height: 400px; background: rgba(255,82,135,.14); }
.login-brand { display: inline-flex; width: fit-content; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 15px; padding: 9px 15px 9px 10px; background: rgba(255,255,255,.94); box-shadow: 0 14px 35px rgba(7,19,48,.2); }
.login-brand:hover { text-decoration: none; transform: translateY(-1px); }
.login-brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg,#2b55ad,#6071e8); }
.login-brand img { width: 112px; height: 34px; object-fit: contain; }
.login-showcase-content { width: min(580px,100%); margin: 50px 0; }
.login-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-eyebrow i { width: 23px; height: 2px; border-radius: 99px; background: #ff729f; }
.login-showcase h1 { max-width: 650px; margin: 0; color: #fff; font-size: clamp(2.45rem,4.7vw,4.55rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.02; }
.login-showcase-content > p { max-width: 535px; margin: 24px 0 30px; color: rgba(255,255,255,.72); font-size: clamp(.92rem,1.5vw,1.08rem); line-height: 1.7; }
.login-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.login-feature-card { min-width: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; padding: 15px; background: rgba(255,255,255,.075); backdrop-filter: blur(12px); }
.login-feature-card.is-featured { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.13); transform: translateY(-8px); }
.login-feature-card > span { display: grid; width: 34px; height: 34px; margin-bottom: 12px; place-items: center; border-radius: 10px; color: #fff; background: rgba(255,255,255,.13); }
.login-feature-card strong,
.login-feature-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-feature-card strong { color: #fff; font-size: .78rem; }
.login-feature-card small { margin-top: 4px; color: rgba(255,255,255,.6); font-size: .62rem; }
.login-showcase-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.68); font-size: .7rem; font-weight: 700; }
.login-showcase-footer span,
.login-showcase-footer a { display: inline-flex; align-items: center; gap: 8px; }
.login-showcase-footer a { color: #fff; }
.login-form-side { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; padding: 40px clamp(28px,6vw,86px); background: #f7f9fc; }
.login-mobile-brand { display: none; }
.login-panel { width: min(440px,100%); }
.login-panel-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 30px; }
.login-panel-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg,#244da4,#5e72e4); box-shadow: 0 12px 24px rgba(46,76,166,.22); }
.login-panel-heading > div > span { display: block; margin: 1px 0 4px; color: #62708a; font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.login-panel-heading h2 { margin: 0; color: #15213a; font-size: clamp(1.75rem,3vw,2.2rem); font-weight: 800; letter-spacing: -.035em; }
.login-panel-heading p { margin: 5px 0 0; color: #7b879d; font-size: .82rem; }
.login-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; border-radius: 13px; padding: 12px 14px; font-size: .75rem; }
.login-alert.is-success { border: 1px solid rgba(45,206,137,.24); color: #167751; background: rgba(45,206,137,.09); }
.login-field { margin-bottom: 18px; }
.login-field label { display: block; margin-bottom: 7px; color: #34415b; font-size: .72rem; font-weight: 800; }
.login-input-wrap { position: relative; display: flex; align-items: center; border: 1px solid #dce3ed; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(34,52,84,.045); transition: border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
.login-input-wrap:focus-within { border-color: #5e72e4; box-shadow: 0 0 0 4px rgba(94,114,228,.1),0 8px 22px rgba(34,52,84,.07); transform: translateY(-1px); }
.login-input-wrap > i { width: 48px; flex: 0 0 48px; color: #8793a9; text-align: center; }
.login-input-wrap input { width: 100%; height: 51px; border: 0; outline: 0; padding: 0 47px 0 0; color: #1d2a44; background: transparent; font-size: .82rem; }
.login-input-wrap input::placeholder { color: #a8b1c1; }
.login-password-toggle { position: absolute; right: 8px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 10px; color: #8793a9; background: transparent; cursor: pointer; }
.login-password-toggle:hover,
.login-password-toggle:focus { color: #4058b8; background: #f0f3ff; outline: 0; }
.login-field.has-error .login-input-wrap { border-color: #f5365c; box-shadow: 0 0 0 4px rgba(245,54,92,.08); }
.login-field-error { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: #d82d50; font-size: .69rem; font-weight: 700; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 23px; }
.login-options > a { color: #3854b4; font-size: .72rem; font-weight: 800; }
.login-remember { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #637089; font-size: .72rem; cursor: pointer; }
.login-remember input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.login-checkmark { display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid #cdd5e1; border-radius: 6px; color: transparent; background: #fff; transition: all .18s ease; }
.login-checkmark i { font-size: .55rem; }
.login-remember input:checked + .login-checkmark { border-color: #4d65d2; color: #fff; background: #4d65d2; box-shadow: 0 4px 10px rgba(77,101,210,.25); }
.login-remember input:focus + .login-checkmark { box-shadow: 0 0 0 4px rgba(94,114,228,.12); }
.login-submit { display: flex; width: 100%; height: 52px; align-items: center; justify-content: space-between; border: 0; border-radius: 14px; padding: 0 19px 0 22px; color: #fff; background: linear-gradient(135deg,#244da4,#5e72e4); box-shadow: 0 14px 28px rgba(48,77,171,.24); font-size: .8rem; font-weight: 800; cursor: pointer; transition: transform .2s ease,box-shadow .2s ease; }
.login-submit i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: rgba(255,255,255,.14); }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(48,77,171,.3); }
.login-submit:focus { outline: 0; box-shadow: 0 0 0 4px rgba(94,114,228,.14),0 14px 28px rgba(48,77,171,.24); }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 25px 0 15px; color: #98a3b4; font-size: .66rem; }
.login-divider::before,.login-divider::after { height: 1px; flex: 1; background: #e1e6ee; content: ""; }
.login-socials { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.login-socials a { display: flex; height: 44px; align-items: center; justify-content: center; gap: 8px; border: 1px solid #dce3ed; border-radius: 12px; color: #34415b; background: #fff; font-size: .73rem; font-weight: 800; }
.login-socials img { width: 18px; height: 18px; object-fit: contain; }
.login-register { margin-top: 24px; border-radius: 12px; padding: 12px; color: #7b879d; background: #edf1f7; font-size: .7rem; text-align: center; }
.login-register a { margin-left: 5px; color: #3854b4; font-weight: 800; }
.login-demo-accounts { margin-top: 16px; border: 1px dashed #cbd4e1; border-radius: 12px; padding: 10px 12px; color: #637089; background: #fff; font-size: .7rem; }
.login-demo-accounts summary { cursor: pointer; font-weight: 800; }
.login-demo-accounts > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.login-demo-accounts button { border: 1px solid #dce3ed; border-radius: 8px; padding: 6px 9px; color: #4058b8; background: #f5f7ff; font-size: .65rem; font-weight: 700; cursor: pointer; }
.login-form-footer { display: flex; width: min(440px,100%); justify-content: space-between; gap: 20px; margin-top: 34px; color: #9aa4b5; font-size: .65rem; }
.login-form-footer a { color: #637089; font-weight: 700; }

[dir="rtl"] .login-input-wrap input { padding: 0 0 0 47px; }
[dir="rtl"] .login-password-toggle { right: auto; left: 8px; }
[dir="rtl"] .login-register a { margin-right: 5px; margin-left: 0; }

@media (max-width: 980px) {
    .login-shell { grid-template-columns: minmax(330px,.88fr) minmax(410px,1.12fr); }
    .login-showcase { padding: 38px; }
    .login-feature-grid { grid-template-columns: 1fr; }
    .login-feature-card { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; column-gap: 10px; }
    .login-feature-card.is-featured { transform: none; }
    .login-feature-card > span { grid-row: 1/3; margin: 0; }
}

@media (max-width: 767.98px) {
    .login-page { background: #f6f8fc; }
    .login-shell { display: block; min-height: 100svh; }
    .login-showcase { display: none; }
    .login-form-side { min-height: 100svh; justify-content: flex-start; padding: 24px 20px 28px; }
    .login-mobile-brand { display: block; width: min(440px,100%); margin: 5px 0 35px; }
    .login-mobile-brand img { width: 132px; height: 44px; object-fit: contain; object-position: left center; }
    .login-panel-heading { margin-bottom: 25px; }
    .login-panel-icon { width: 43px; height: 43px; flex-basis: 43px; }
    .login-form-footer { margin-top: auto; padding-top: 28px; }
}

@media (max-width: 380px) {
    .login-form-side { padding-right: 15px; padding-left: 15px; }
    .login-options { align-items: flex-start; flex-direction: column; gap: 11px; }
    .login-panel-heading h2 { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .login-brand,.login-submit,.login-input-wrap { transition: none; }
}
