/* splash */
.splash { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #16305C 0%, #0D1A33 45%, #0B1220 80%); }
.splash-stripes { position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: linear-gradient(rgba(96,165,255,.07) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(96,165,255,.07) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); }
.splash-body { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; width: min(480px, 100%); }
.splash-body h1 { font-size: 30px; font-weight: 800; margin-top: 18px; } .splash-body p { margin: 0; color: #B9C8E4; font-size: 18px; }
.splash .progress, .auth-page .progress { width: min(320px, 80%); height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); border: 0; overflow: hidden; margin-top: 22px; }
.splash .progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--blue-2)); border-radius: 6px; box-shadow: 0 0 12px var(--blue); }
.splash-body small { color: #8FA0C2; font-size: 14.5px; }
.splash .wordmark { flex-direction: column; }
.splash .wordmark .wm-text { align-items: center; }

/* login + role */
.auth-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 16px; background: var(--bg); position: relative; overflow: hidden; }
.auth-page::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 400px at 80% 0%, rgba(47,123,255,.16), transparent 60%), radial-gradient(500px 360px at 0% 100%, rgba(96,165,255,.08), transparent 60%); }
.stripes-corner { position: absolute; inset-block-start: 22px; inset-inline-end: 22px; width: 64px; height: 64px; opacity: .18; background: url("/brand/mihwar-mark.svg") center / contain no-repeat; }
.auth-card { position: relative; width: 100%; max-width: 440px; background: linear-gradient(180deg, #111C33, #0E1729); border: 1px solid var(--line-2); border-radius: 22px; padding: 34px 30px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(96,165,255,.05) inset; display: flex; flex-direction: column; gap: 18px; }
.auth-card.wide { max-width: 580px; }
.auth-card h2 { font-size: 28px; font-weight: 800; margin-top: 8px; color: #fff; }
.auth-card h3 { font-size: 19px; }
.auth-card .sub { margin: -10px 0 0; color: var(--muted); font-size: 16px; }
.auth-form { display: flex; flex-direction: column; gap: 22px; }
.af { display: flex; flex-direction: column; gap: 8px; }
.af > label { font-size: 15.5px; font-weight: 700; color: #C9D4EA; }
.af-box { position: relative; display: flex; align-items: center; }
.af-box input, .af-box select { height: 52px; font-size: 17px; padding-inline-end: 46px; }
.af-ic, .eye { position: absolute; inset-inline-end: 12px; color: var(--slate); display: grid; place-items: center; }
.eye { background: none; border: 0; cursor: pointer; width: 34px; height: 34px; border-radius: 8px; }
.eye:hover { background: var(--ember-soft); color: var(--blue-2); }
.remember { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--muted); cursor: pointer; }
.remember input { width: 22px; height: 22px; min-height: 0; accent-color: var(--blue); }
.btn.big { min-height: 54px; font-size: 18px; font-weight: 700; width: 100%; }
.forgot { text-align: center; color: var(--blue-2); font-weight: 700; font-size: 16px; }
.forgot:hover { color: #fff; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.role { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px; padding: 12px 8px; text-align: center; border: 1px solid var(--line-2); border-radius: 14px; background: #0D1629; color: var(--muted); font-weight: 700; font-size: 15px; }
.role[aria-disabled="true"] { opacity: .45; }
.role.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
@media (max-width: 520px) { .role-grid { grid-template-columns: repeat(2, 1fr); } .auth-card { padding: 26px 20px; } }

/* login brand panel (wide screens) */
.auth-art { display: none; }
@media (min-width: 980px) {
  .auth-page { grid-template-columns: minmax(0, 1.1fr) minmax(480px, 1fr); place-items: center; padding: 0; }
  .auth-page > .auth-card { margin: 28px; }
  .auth-page > .stripes-corner { display: none; }
  .auth-art { display: flex; position: relative; align-self: stretch; justify-self: stretch; overflow: hidden; isolation: isolate;
    background: radial-gradient(700px 500px at 30% 20%, #1B3F7E 0%, transparent 60%), linear-gradient(160deg, #10224A, #0A1224 70%); border-inline-end: 1px solid var(--line-2); }
  .auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(rgba(96,165,255,.08) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(96,165,255,.08) 1px, transparent 1px) 0 0 / 48px 48px;
    mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
  .art-mark { position: absolute; inset-block-start: 12%; inset-inline-start: 50%; translate: -50% 0; width: 46%; max-width: 300px; aspect-ratio: 1; z-index: -1; opacity: .9; filter: drop-shadow(0 30px 60px rgba(47,123,255,.45)); background: url("/brand/mihwar-mark.svg") center / contain no-repeat; }
  [dir=ltr] .art-mark { translate: 50% 0; }
  .art-body { margin-top: auto; padding: 40px 48px 48px; color: #fff; display: flex; flex-direction: column; gap: 18px; width: 100%; }
  .art-body h2 { font-size: 36px; font-weight: 800; line-height: 1.35; margin: 0; max-width: 16ch; }
  .art-body p { margin: -6px 0 0; color: #B9C8E4; font-size: 17px; max-width: 44ch; }
  .art-body ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .art-body li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(96,165,255,.18); backdrop-filter: blur(6px); }
  .art-body li i { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(47,123,255,.22); color: var(--blue-2); flex: none; }
  .auth-page > .lang-float { z-index: 6; }
}
