/* Scoped to the sign-in screen; the administration theme stays independent. */
body.login-page { --login-accent: #8A63FF; font-family: 'IBM Plex Sans Arabic', sans-serif !important; color: #f0edff; background: radial-gradient(ellipse at 12% 20%, #6b3df426, transparent 55%), #0A1020; min-height: 100dvh; margin: 0; display: flex; flex-direction: column; line-height: 1.7; isolation: isolate; }
.login-page *, .login-page *::before, .login-page *::after { box-sizing: border-box; }
.login-page :is(button, input) { font: inherit; }
.login-decoration { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .3; background-image: repeating-linear-gradient(30deg, transparent 0 36px, #8a63ff0c 36px 37px, transparent 37px 72px); }
.login-header, .login-layout, .login-footer { width: min(1152px, calc(100% - 64px)); margin-inline: auto; }
.login-header { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; gap: 20px; }
.login-brand { display: inline-flex; flex-shrink: 0; border-radius: 10px; }
.login-brand img { display: block; width: 168px; max-width: 100%; height: 52px; object-fit: contain; }
.login-languages { display: flex; gap: 4px; background: #131d31; border: 1px solid #4f416b; border-radius: 12px; padding: 4px; }
.login-languages a { display: grid; place-items: center; min-height: 40px; padding: 6px 14px; color: #b9c3da; border-radius: 8px; font-size: .85rem; text-decoration: none; }
.login-languages a[aria-current="page"] { color: #f5f0ff; background: #6b3df43d; }
.login-page a:hover { color: #cbb7ff; }
.login-page :is(a, button):focus-visible { outline: 2px solid #c4b0ff; outline-offset: 4px; }
.login-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); align-items: center; padding-block: 40px 56px; }
.login-context { padding-block: 20px; }
.login-eyebrow { color: #bca8ff; font-size: .87rem; font-weight: 500; }
.login-context h2 { font-family: inherit; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.55; font-weight: 600; color: #f4f0ff; margin-block: 20px; text-wrap: balance; }
.login-context > p { color: #b5c0d6; font-size: 1.04rem; line-height: 1.9; max-width: 34rem; }
.login-features { padding: 0; margin: 30px 0 0; list-style: none; display: grid; gap: 16px; }
.login-features li { display: flex; align-items: center; gap: 14px; color: #cdd5e6; font-size: .95rem; }
.login-features .module-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #665480; border-radius: 13px; background: #8a63ff15; color: #c4b0ff; }
.login-features .module-icon svg { width: 25px; height: 25px; }
.login-features .module-icon-fill { fill: #8a63ff26; }
.login-towers { display: block; color: #b69aff; opacity: .32; margin-top: 36px; max-width: 100%; width: 420px; }
.login-card { padding: clamp(28px, 3.3vw, 42px); border: 1px solid #65517e; border-radius: 26px; background: linear-gradient(150deg, #222a40, #121c30); box-shadow: 0 30px 80px #03081855; min-width: 0; }
.login-card h1 { font-family: inherit; color: #f4f0ff; font-size: clamp(1.65rem, 2.3vw, 2rem); font-weight: 600; line-height: 1.6; margin-block: 10px; }
.login-intro { color: #b9c3da; font-size: .94rem; line-height: 1.9; margin-bottom: 26px; }
.login-form { display: grid; gap: 22px; }
.login-field { min-width: 0; }
.login-field label { display: block; margin-bottom: 10px; color: #dbe2f0; font-size: .9rem; font-weight: 500; }
.login-field input { width: 100%; min-height: 52px; border: 1px solid #60708b99; border-radius: 12px; padding: 12px 16px; background: #10192b; color: #f3f0ff; font-size: 1rem; box-shadow: none; outline: none; }
.login-field input::placeholder { color: #94a0b9; opacity: 1; font-size: .87rem; }
.login-field input:focus { border-color: #bca8ff; box-shadow: 0 0 0 3px #8a63ff26; background: #131d32; }
.login-field input:-webkit-autofill { -webkit-text-fill-color: #f3f0ff; -webkit-box-shadow: 0 0 0 100px #131d32 inset; caret-color: #f3f0ff; }
.login-password-field { position: relative; }
.login-password-field input { padding-inline-end: 60px; }
.login-password-toggle { position: absolute; inset-inline-end: 4px; top: 4px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: none; background: transparent; color: #bca8ff; border-radius: 9px; cursor: pointer; }
.login-password-toggle[hidden] { display: none; }
.login-password-toggle:hover { color: #ede5ff; background: #8a63ff18; }
.login-eye-slash { display: none; }
.login-password-toggle[aria-pressed="true"] .login-eye-slash { display: block; }
.login-submit { min-height: 52px; display: flex; justify-content: center; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 12px; color: #fff; background: linear-gradient(110deg, #6B3DF4, #8A63FF); font-size: 1rem; font-weight: 600; cursor: pointer; box-shadow: 0 8px 26px #6b3df433; transition: filter .2s, box-shadow .2s; margin-top: 4px; }
.login-submit:hover { filter: brightness(1.1); box-shadow: 0 10px 30px #6b3df44d; }
html[dir="rtl"] .login-submit svg { transform: rotate(180deg); }
.login-help { border-top: 1px solid #38435b; margin-top: 26px; padding-top: 22px; color: #aeb9d0; font-size: .85rem; }
.login-help p { margin-bottom: 10px; }
.login-help a { color: #d1c0ff; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; }
.login-help > span { margin-inline: 10px; }
.login-office-signup { margin-top: 16px; font-size: .88rem; }
.login-office-signup a { color: #d1c0ff; display: inline-block; padding-block: 10px; }
.login-alert { padding: 14px 16px; border: 1px solid; border-radius: 12px; margin-bottom: 22px; font-size: .9rem; line-height: 1.8; overflow-wrap: anywhere; }
.login-alert-error { color: #ffd6dd; background: #8a26322e; border-color: #b25d6e; }
.login-alert-success { color: #baf4d9; background: #14654b30; border-color: #408e72; }
.login-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; color: #8f9db9; font-size: .78rem; padding-block: 24px; border-top: 1px solid #2b344c; }
.login-footer > div { display: flex; flex-wrap: wrap; gap: 20px; }
.login-footer a { color: #b4bed4; padding-block: 10px; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 960px) {
    .login-context { display: none; }
    .login-layout { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 0; padding-block: 28px 48px; }
    .login-footer { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
    .login-header, .login-layout, .login-footer { width: calc(100% - 32px); }
    .login-header { padding-block: 20px; gap: 12px; flex-wrap: wrap; justify-content: center; }
    .login-brand img { width: 132px; height: 44px; }
    .login-languages a { padding-inline: 10px; font-size: .8rem; }
    .login-layout { padding-block: 18px 32px; }
    .login-card { padding: 28px 22px; border-radius: 22px; }
    .login-footer { flex-direction: column; gap: 4px; padding-block: 16px; }
    .login-footer > div { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .login-submit { transition: none; } }
