/* The Accounts sign-in look (apps/web/src/styles.css in ../financial), reduced to the
   tokens this one screen uses. */

:root {
  --nav: #1266ce;
  --surface: #ffffff;
  --border-strong: #c3cbd6;
  --text: #1c2530;
  --text-muted: #6b7785;
  --link: #1266ce;
  --green-btn: #7bdf7b;
  --green-btn-tx: #14421b;
  --red: #cc2027;
  --radius: 6px;
  --font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --nav: #0f4c9c;
    --surface: #191f28;
    --border-strong: #3c4757;
    --text: #e7ecf3;
    --text-muted: #97a3b3;
    --link: #6aaaf5;
    --green-btn: #2f6b3c;
    --green-btn-tx: #eafbee;
    --red: #f08079;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
}

a {
  color: var(--link);
}

.signin {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--nav);
  padding: 24px;
}
.signin__card {
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 34px 30px 28px;
  text-align: center;
}
.signin__mark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.signin__text {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 16px 0 22px;
}
.signin__foot {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.signin__error {
  color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--link);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease;
}
.btn:hover {
  background: rgba(18, 102, 206, 0.06);
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.btn--green {
  background: var(--green-btn);
  border-color: transparent;
  color: var(--green-btn-tx);
}
.btn--green:hover {
  filter: brightness(1.05);
  background: var(--green-btn);
}
.btn--block {
  width: 100%;
  margin-top: 8px;
}

.field {
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}
.field--block {
  width: 100%;
  margin-bottom: 12px;
}
.field--code {
  text-align: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.codes {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 18px;
  text-align: left;
}
.codes code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.creds {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.creds li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-strong);
}

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