/* Focused sign-in surface. Authentication continues through the existing form. */
body.management-ui.auth-page {
    background: #f5f5f7;
    padding: 24px;
    align-items: center;
}
.management-ui.auth-page .auth-shell { width: 100%; max-width: 1360px; }
.signin-page { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, 1fr); gap: 0; min-width: 0; direction: ltr; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: white; box-shadow: 0 20px 70px rgb(0 0 0 / 7%); }
.signin-form-panel { display: grid; align-content: center; justify-items: center; gap: 22px; min-width: 0; padding: 28px clamp(28px, 4vw, 64px); }
.signin-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 800px; background: #070e1e; color: white; }
.signin-hero-image { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: center; animation: signin-drift 22s ease-in-out infinite alternate; }
.signin-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(3 9 23 / 40%), transparent 45%, rgb(3 9 23 / 65%)); pointer-events: none; }
.signin-hero-light { position: absolute; width: 90%; height: 65%; inset-inline-start: -35%; top: 22%; border-radius: 50%; background: radial-gradient(ellipse, rgb(31 112 255 / 22%), transparent 65%); mix-blend-mode: screen; animation: signin-light 16s ease-in-out infinite alternate; pointer-events: none; }
.signin-hero-copy { position: relative; z-index: 1; padding: 48px 44px; animation: signin-reveal .8s ease-out both; }
.signin-hero-eyebrow { display: block; color: #a9c5ec; font-size: 11px; font-weight: 500; letter-spacing: .17em; }
.signin-hero-copy h2 { max-width: 12ch; margin: 22px 0 16px; font-size: clamp(36px, 3.8vw, 56px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; color: white; text-wrap: balance; }
html[dir="rtl"] .signin-hero-copy h2 { letter-spacing: -.02em; }
.signin-hero-copy p { max-width: 31ch; margin: 0; font-size: 15px; line-height: 1.7; color: #c4d0e3; }
.signin-hero-bottom { position: absolute; z-index: 1; bottom: 30px; inset-inline: 36px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #d2dced; font-size: 12px; }
.signin-motion { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgb(255 255 255 / 25%); border-radius: 50%; color: white; background: rgb(5 13 30 / 55%); font-size: 18px; cursor: pointer; }
.signin-motion:hover { background: rgb(255 255 255 / 18%); }
.signin-hero.is-paused :is(.signin-hero-image, .signin-hero-light, .signin-hero-copy) { animation-play-state: paused; }
@keyframes signin-drift { from { transform: scale(1); } to { transform: scale(1.055) translateY(-.6%); } }
@keyframes signin-light { from { transform: translate(-5%, 10%); opacity: .3; } to { transform: translate(65%, -10%); opacity: 1; } }
@keyframes signin-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.signin-languages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.signin-languages a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 15px; color: var(--muted); border: 1px solid transparent; border-radius: 20px; font-size: 12px; text-decoration: none; }
.signin-languages a:hover { color: var(--ink); background: #eaeaed; }
.signin-languages a[aria-current] { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 2px 5px rgb(0 0 0 / 3%); }
.signin-card { width: 100%; max-width: 390px; min-width: 0; padding: 0; border: 0; background: #fff; }
.signin-heading { text-align: center; margin-bottom: 30px; }
.signin-brand { display: inline-flex; justify-content: center; align-items: center; max-width: 100%; }
.signin-brand img { display: block; width: auto; height: 44px; max-width: 190px; object-fit: contain; }
.management-ui[data-brand="screen-now"] .signin-brand img { width: 264px; height: auto; max-width: 100%; }
.signin-brand-caption { margin: 9px 0 24px; color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.signin-heading h1 { margin: 0; font-size: clamp(27px, 3vw, 32px); line-height: 1.25; letter-spacing: -.025em; font-weight: 650; color: var(--ink); }
html[dir="rtl"] .signin-heading h1 { letter-spacing: 0; }
.signin-description { margin: 12px auto 0; max-width: 32ch; color: var(--muted); font-size: 14px; line-height: 1.65; }
.management-ui .signin-form { gap: 20px; }
.management-ui .signin-form .field { gap: 8px; }
.management-ui .signin-form .field__label { justify-content: flex-start; color: var(--ink-2); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.management-ui .signin-form .field__control { border: 1px solid #c9c9ce; border-radius: 12px; background: #fff; box-shadow: none; overflow: visible; }
.management-ui .signin-form .field__control:focus-within { border-color: #007aff; box-shadow: 0 0 0 3px rgb(0 122 255 / 15%); }
.management-ui .signin-form .field__control input { min-height: 52px; padding: 14px 16px; border-radius: 12px; font-size: 16px; line-height: 1.4; }
.management-ui .signin-form .field__control input::placeholder { color: #86868b; font-weight: 400; font-size: 14px; }
.management-ui .signin-form .field__toggle { width: 48px; height: 48px; min-width: 48px; margin-inline-end: 2px; border-radius: 10px; color: var(--muted); }
.management-ui .signin-form .field__toggle:hover { background: var(--surface-3); color: var(--ink); }
.signin-verification { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; }
.signin-verification-heading { display: grid; gap: 5px; }
.signin-verification-heading label { color: var(--ink-2); }
.signin-verification-heading > span { font-size: 12px; color: var(--muted); }
.signin-equation { display: flex; justify-content: center; align-items: center; gap: 10px; }
.signin-equation > span { color: var(--ink-2); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.management-ui .signin-form .signin-equation input { width: 58px; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid #c9c9ce; border-radius: 9px; text-align: center; background: white; color: var(--ink); font-size: 18px; box-shadow: none; }
.management-ui .signin-form .signin-equation input:focus { border-color: var(--primary); }
.management-ui .signin-form .signin-remember { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; font-weight: 400; }
.management-ui .signin-form .signin-submit { width: 100%; min-height: 50px; padding: 12px 20px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.signin-help { margin-top: 24px; text-align: center; }
.signin-help summary { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; color: var(--primary); font-size: 13px; cursor: pointer; list-style: none; border-radius: 6px; }
.signin-help summary::-webkit-details-marker { display: none; }
.signin-help summary:hover { text-decoration: underline; }
.signin-help p { padding: 12px; margin: 8px 0 0; background: var(--surface-2); border-radius: 9px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.signin-footer { text-align: center; color: var(--muted); }
.signin-footer p { margin: 0 0 5px; font-size: 12px; }
.signin-footer small { font-size: 11px; }
.management-ui.auth-page .auth-shell .flash { margin-bottom: 20px; border-color: var(--line); background: #fff; color: var(--ink); backdrop-filter: none; }
.management-ui.auth-page .auth-shell .flash-danger { background: var(--danger-soft); border-color: #f1d5d2; color: var(--coral); }
.management-ui.auth-page .auth-shell .flash-success { background: var(--success-soft); border-color: #d6eadb; color: var(--success); }
@media (max-width: 980px) {
    .signin-page { grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); }
    .signin-form-panel { padding-inline: 26px; }
    .signin-hero-copy { padding: 36px 28px; }
    .signin-hero-copy h2 { font-size: 38px; }
    .signin-verification { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 740px) {
    body.management-ui.auth-page { padding: 16px; align-items: start; }
    .signin-page { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
    .signin-hero { min-height: 270px; }
    .signin-hero-image { object-position: center 48%; }
    .signin-hero::after { background: linear-gradient(90deg, rgb(3 9 23 / 70%), rgb(3 9 23 / 40%)); }
    .signin-hero-copy { padding: 28px; }
    .signin-hero-copy h2 { max-width: 13ch; font-size: 34px; margin-block: 16px 12px; }
    .signin-hero-copy p { max-width: 27ch; font-size: 13px; }
    .signin-hero-bottom { inset-inline: 24px; bottom: 16px; }
    .signin-hero-bottom > span { visibility: hidden; }
    .signin-form-panel { padding: 24px; gap: 20px; }
    .signin-card { padding: 0; }
    .signin-heading { margin-bottom: 26px; }
    .signin-brand img { height: 38px; max-width: 170px; }
    .signin-brand-caption { margin-bottom: 24px; }
    .signin-languages a { min-height: 44px; }
    .signin-help summary { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .signin-hero :is(.signin-hero-image, .signin-hero-light, .signin-hero-copy) { animation: none; }
    .signin-motion { display: none; }
}
@media (prefers-contrast: more) {
    .signin-card, .signin-verification { border-color: var(--ink); }
    .signin-description, .signin-footer, .signin-brand-caption { color: var(--ink-2); }
}
