/* Sumer Operation Center: login page (SOC-P01). Design: owner references, 2026-11-04. */
:root {
  --bg: #030915;
  --text: #eef3fa;
  --muted: #aebdd0;
  --cyan: #38d6ff;
  --gold: #d9a04a;
  --gold-text: #e3a548;
  --line: rgba(170, 195, 225, .38);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Background: desktop gate; the empty sky on the right holds the card. */
.bg { position: fixed; inset: 0; background: url(bg-desktop.webp) 32% center / cover no-repeat; }
.bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(2, 8, 20, 0) 45%, rgba(2, 8, 20, .35) 100%); }

.stage { position: relative; z-index: 1; display: flex; min-height: 100vh; min-height: 100dvh;
  padding: 56px clamp(24px, 7vw, 140px) 32px; }

/* Card */
.card {
  width: min(440px, 100%); margin: auto 0 auto auto;
  padding: 26px 30px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(8, 22, 36, .80), rgba(4, 12, 22, .84));
  border: 1px solid rgba(80, 220, 255, .62);
  box-shadow: 0 0 0 1px rgba(56, 214, 255, .12), 0 0 28px rgba(56, 214, 255, .30), inset 0 0 22px rgba(56, 214, 255, .07);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

.brand { display: flex; align-items: center; justify-content: center; gap: 16px; }
.logo { flex: none; display: flex; flex-direction: column; align-items: center; }
.word { margin-top: 1px; font: 800 25px/1 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; letter-spacing: 1.5px;
  background: linear-gradient(180deg, #f5ecd9, #cbb893); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mark { width: 104px; aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f5ecd9, #cbb893);
  -webkit-mask: url(../brand/sumer_mark.png) center / contain no-repeat;
          mask: url(../brand/sumer_mark.png) center / contain no-repeat; }
.sep { align-self: stretch; width: 1px; margin: 6px 0; background: rgba(230, 236, 245, .45); }
.names .en { font-weight: 700; font-size: 25px; line-height: 1.12; color: #f3f6fb; }
.names .ar { margin-top: 4px; font-weight: 700; font-size: 21px; line-height: 1.3; color: var(--gold-text); text-align: left; }

/* Gold rules */
.rule { display: flex; align-items: center; gap: 8px; margin: 18px 0 12px; }
.rule .ln { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule .ln.r { background: linear-gradient(270deg, transparent, var(--gold)); }
.rule .dm { flex: none; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.rule .glyphs { flex: none; width: 100px; height: 22px; fill: var(--gold); }
.rule .zig { flex: none; width: 44px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linejoin: round; }

h1 { margin: 0 0 20px; text-align: center; font-weight: 500; font-size: 22px; color: var(--text); }

/* Fields */
.field { position: relative; display: flex; align-items: center; height: 50px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(8, 20, 34, .55);
  transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 214, 255, .18); }
.field > svg { flex: none; width: 22px; height: 22px; margin: 0 10px 0 16px;
  fill: none; stroke: #c9d6e6; stroke-width: 1.6; stroke-linecap: round; }
.field input { flex: 1; min-width: 0; height: 100%; padding: 0 12px 0 4px; border: 0; outline: 0;
  background: transparent; color: #f1f5fb; font: inherit; font-size: 16px; }
.field input::placeholder { color: var(--muted); opacity: 1; }
.eye { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: 4px;
  border: 0; border-radius: 8px; background: transparent; color: #d5e0ec; cursor: pointer; }
.eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.eye .i-hide, .eye[aria-pressed="true"] .i-show { display: none; }
.eye[aria-pressed="true"] .i-hide { display: block; }
.eye:hover { color: #fff; }
.eye:focus-visible { outline: 2px solid var(--cyan); outline-offset: 0; }

/* Remember me */
.remember { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 22px;
  color: #e3eaf3; cursor: pointer; user-select: none; }
.remember input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.remember .box { display: grid; place-items: center; width: 18px; height: 18px;
  border: 1.5px solid #c3d0df; border-radius: 3px; transition: background .15s, border-color .15s; }
.remember .box::after { content: ""; width: 5px; height: 10px; margin-top: -2px;
  border: solid #04121c; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.remember input:checked + .box { background: var(--cyan); border-color: var(--cyan); }
.remember input:checked + .box::after { opacity: 1; }
.remember input:focus-visible + .box { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Sign in */
.signin { display: block; width: 100%; height: 56px; border: 1px solid rgba(190, 250, 255, .8); border-radius: 10px;
  background: linear-gradient(180deg, #8af5ff 0%, #2bd3ea 55%, #13b8d6 100%);
  color: #03131d; font: 700 24px/1 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; cursor: pointer;
  box-shadow: 0 0 18px rgba(56, 214, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: filter .15s, box-shadow .15s; }
.signin:hover { filter: brightness(1.06); box-shadow: 0 0 26px rgba(56, 214, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .6); }
.signin:active { filter: brightness(.96); }
.signin:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.signin:disabled { opacity: .65; cursor: progress; filter: saturate(.7); }

.status { margin: 12px 0 0; text-align: center; font-size: 14px; color: #ffd58a; }
.status:empty { display: none; }

.foot { margin-top: 22px; }
.foot .rule { margin: 0 0 8px; }
.foot p { margin: 0; text-align: center; font-size: 16px; color: #dfe7f1; }

/* Local-trial notice (removed when server login is enabled in SOC-P04) */
.trial { position: fixed; top: 12px; left: 50%; z-index: 2; transform: translateX(-50%); margin: 0;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(40, 24, 0, .72); border: 1px solid rgba(245, 180, 70, .6); color: #ffd58a; font-size: 13px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phone and portrait tablet: Ishtar gate background, card in the lower half. */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  .bg { background-image: url(bg-mobile.webp); background-position: center top; }
  .bg::after { background: linear-gradient(180deg, rgba(2, 8, 20, 0) 40%, rgba(2, 8, 20, .45) 100%); }
  .stage { padding: 52px 16px max(20px, env(safe-area-inset-bottom)); }
  .card { margin: auto auto 0; padding: 20px 20px 16px; }
  .mark { width: 84px; }
  .word { font-size: 20px; }
  .names .en { font-size: 21px; }
  .names .ar { font-size: 18px; }
  .rule { margin: 14px 0 10px; }
  h1 { margin-bottom: 16px; font-size: 19px; }
  .field { height: 48px; margin-bottom: 12px; }
  .remember { margin-bottom: 16px; }
  .signin { height: 52px; font-size: 22px; }
  .foot { margin-top: 16px; }
}
@media (max-width: 360px) {
  .brand { gap: 10px; }
  .mark { width: 68px; }
  .word { font-size: 16px; }
  .names .en { font-size: 18px; }
  .names .ar { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
