@import url("/fonts.css");
/* Sign-in / register pages — the same basic card the Strata server's own
 * sign-in page (/rest/login, `partials/wt_login.html`) uses, so the two
 * surfaces look like one product (owner decision 2026-09-08). Palette and
 * dimensions are copied from that partial rather than shared, because that
 * file is an Askama template inside the server crate and this page is a
 * static asset served by geoai. Sign-in pages load nothing else, so the
 * `@import` above is what gets them the vendored font faces and the --font
 * token (fonts.css).
 */
:root {
  --esri-topbar: #2b2b2b; --esri-blue: #0079c1; --esri-blue-dark: #005e95;
  --esri-bg: #f4f4f4; --esri-surface: #ffffff; --esri-border: #d0d0d0;
  --esri-text: #323232; --esri-muted: #6e6e6e; --esri-danger: #de1f26;
  --esri-font: var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; background: var(--esri-bg); }

/* Dark 48px strip, the standalone twin of the server console's top bar. */
.wt-topbar {
  background: var(--esri-topbar); color: #fff; display: flex; align-items: center;
  padding: 0 18px; height: 48px; font: 600 16px/1 var(--esri-font); letter-spacing: .01em;
}
.wt-topbar .wt-mark { width: 12px; height: 12px; background: var(--esri-blue); border-radius: 2px; margin-inline-end: 9px; }

.wt-auth {
  min-height: calc(100vh - 48px); display: flex; align-items: center; justify-content: center;
  padding: 40px 16px; font-family: var(--esri-font); color: var(--esri-text); line-height: 1.55;
}
.wt-card {
  width: 100%; max-width: 430px; background: var(--esri-surface); border: 1px solid var(--esri-border);
  border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.10); overflow: hidden;
}
.wt-accent { height: 3px; background: var(--esri-blue); }
.wt-body { padding: 36px 36px 30px; }
.wt-logo { display: block; width: 158px; height: 72px; margin: 0 auto 20px; }
.wt-logo img { width: 100%; height: 100%; object-fit: contain; }
.wt-title { margin: 0; text-align: center; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--esri-text); }
.wt-sub { margin: 4px 0 0; text-align: center; font-size: 14px; font-weight: 600; color: var(--esri-muted); }
.wt-kicker {
  display: block; text-align: center; margin: 18px 0 20px; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--esri-blue-dark);
}
.wt-field { margin: 0 0 14px; }
.wt-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--esri-muted); margin-bottom: 6px; }
.wt-field input {
  width: 100%; border: 1px solid var(--esri-border); border-radius: 2px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; background: #fff; color: var(--esri-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wt-field input:focus { outline: none; border-color: var(--esri-blue); box-shadow: 0 0 0 2px rgba(0,121,193,.20); }
.wt-btn {
  display: block; width: 100%; cursor: pointer;
  background: var(--esri-blue); border: 1px solid var(--esri-blue); color: #fff;
  font-family: inherit; font-weight: 600; font-size: 14px;
  padding: 11px 16px; border-radius: 2px; text-align: center; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.wt-btn:hover { background: var(--esri-blue-dark); border-color: var(--esri-blue-dark); }
.wt-msg { border-radius: 2px; padding: 12px 14px; font-size: 13.5px; margin: 14px 0 0; }
.wt-msg-err { background: #fdecec; border: 1px solid var(--esri-danger); color: var(--esri-danger); }
.wt-msg[hidden] { display: none; }
.wt-note { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--esri-muted); }
.wt-note a { color: var(--esri-blue); text-decoration: none; }
.wt-note a:hover { text-decoration: underline; }
.wt-foot {
  margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--esri-border);
  text-align: center; font-size: 11.5px; color: var(--esri-muted);
}
.wt-foot a { color: var(--esri-blue); text-decoration: none; }
.wt-foot a:hover { text-decoration: underline; }

/* Language strip (English / العربية), wired by login.js via lang.mjs. */
.wt-lang { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.wt-lang-btn { font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--esri-border); background: #fff; cursor: pointer; }
.wt-lang-btn[aria-pressed="true"] { background: var(--esri-blue); color: #fff; border-color: var(--esri-blue); }

/* Social sign-in row, rendered by login.js under the form (same classes as
   before the restyle: .social, .social-sep, .social-btn, .social-ico). */
.social { margin-top: 18px; }
.social[hidden] { display: none; }
.social-sep {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--esri-muted);
}
.social-sep::before, .social-sep::after { content: ""; flex: 1; height: 1px; background: var(--esri-border); }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 0 8px; padding: 9px 12px; border: 1px solid var(--esri-border); border-radius: 2px;
  background: #fff; color: var(--esri-blue-dark); font-weight: 600; font-size: 13px; text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.social-btn:hover { border-color: var(--esri-blue); background: #eaf4fb; }
.social-ico { display: inline-flex; width: 18px; height: 18px; }
.social-ico svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .wt-auth { padding: 20px 10px; }
  .wt-body { padding: 26px 20px 22px; }
}

/* First-sign-in password dialog: same card language as the sign-in form. */
.wt-dialog { border: 1px solid var(--esri-border); border-radius: 3px; padding: 28px 32px; max-width: 420px; width: calc(100% - 32px); font-family: var(--esri-font); color: var(--esri-text); }
.wt-dialog::backdrop { background: rgba(43, 43, 43, .55); }
.wt-dialog .wt-title { margin-bottom: 4px; }
.wt-dialog .wt-sub { margin-bottom: 18px; }
