/* Sign-in. Wears the OBF Dreams tokens — the group brand — because at this
   point no brand has been chosen yet. The console re-skins per brand after. */

:root {
  --surface:      #FFFFFF;
  --surface-alt:  #F4F6F9;
  --ink:          #1A2430;
  --ink-soft:     #5A6875;
  --line:         #DFE4EA;
  --accent:       #4779B2;
  --accent-deep:  #35597F;
  --ok:           #2E7D57;
  --stop:         #A32B23;
  --ok-wash:      #EAF5EF;
  --stop-wash:    #FBECEB;
  --radius:       8px;
  --display: Poppins, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1100px 520px at 50% -10%, #EAF1F8 0%, transparent 62%),
    var(--surface-alt);
  color: var(--ink);
  font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 30px 24px;
  box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 18px 44px -20px rgba(16,24,40,.28);
}

.card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.card__logo { width: 46px; height: 46px; flex: none; }

.eyebrow {
  margin: 0 0 2px;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.card h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.card__sub { margin: 0 0 22px; font-size: 13.5px; color: var(--ink-soft); }

.field { display: block; margin-bottom: 14px; }
.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .14s, box-shadow .14s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(71,121,178,.16);
}

.btn {
  width: 100%;
  padding: 11px 16px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: filter .14s, opacity .14s;
}
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:disabled { opacity: .6; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

.msg {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--stop-wash);
  border: 1px solid rgba(163,43,35,.28);
  color: var(--stop);
}
.msg[data-tone="ok"] {
  background: var(--ok-wash);
  border-color: rgba(46,125,87,.28);
  color: var(--ok);
}

.card__foot {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.card__foot b { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
