/* LEN ID: the LEN palette (navy #0d3465, sky #1dace4, red #ec241c), Inter for text and Poppins for headings,
   both served from this site because the Content-Security-Policy allows fonts from here only. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(../fonts/poppins-latin-600-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/poppins-latin-700-normal.woff2) format('woff2');
}

:root {
  color-scheme: light;
  --navy: #0d3465;
  --sky: #1dace4;
  --red: #ec241c;
  --bg: #eef2f8;
  --bg-band: linear-gradient(160deg, #174b8e 0%, #0b2b57 100%);
  --surface: #ffffff;
  --text: #0f1f36;
  --muted: #56657c;
  --line: #d3dcea;
  --field: #ffffff;
  --primary: #0d3465;
  --primary-hover: #174b8e;
  --primary-text: #ffffff;
  --quiet: #e9eef6;
  --quiet-hover: #dde5f1;
  --link: #0d5ea8;
  --error-bg: #fdecea;
  --error-line: #f6c4c0;
  --error-text: #9f1610;
  --ok-bg: #e7f5ed;
  --ok-line: #bfe3cd;
  --ok-text: #155c37;
  --shadow: 0 1px 2px rgb(13 52 101 / 6%), 0 12px 32px rgb(13 52 101 / 12%);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --red: #ff6b63;
    --bg: #061529;
    --bg-band: linear-gradient(160deg, #123c73 0%, #08203f 100%);
    --surface: #0d203b;
    --text: #e5ecf6;
    --muted: #9eb0c9;
    --line: #23395b;
    --field: #091a31;
    --primary: #1dace4;
    --primary-hover: #4cc0ec;
    --primary-text: #04192f;
    --quiet: #16304f;
    --quiet-hover: #1d3a5f;
    --link: #7fd0f3;
    --error-bg: #3a1513;
    --error-line: #6b2723;
    --error-text: #ffb3ad;
    --ok-bg: #0f2e20;
    --ok-line: #1f5138;
    --ok-text: #9edcb7;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 'Inter Variable', 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
}

/* A navy band behind the top of the card, like the app tiles. */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: 260px;
  background: var(--bg-band);
  z-index: -1;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #ffffff;
}

.brand-mark {
  display: block;
  border-radius: 11px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font: 700 22px/1.15 'Poppins', system-ui, sans-serif;
  letter-spacing: 0.01em;
}

.brand-tag {
  font-size: 13px;
  opacity: 0.85;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

h1 {
  margin: 0 0 6px;
  font: 600 22px/1.3 'Poppins', system-ui, sans-serif;
}

h2 {
  margin: 24px 0 10px;
  font: 600 15px/1.4 'Poppins', system-ui, sans-serif;
}

.lead {
  margin: 0 0 20px;
  color: var(--muted);
}

.lead strong {
  color: var(--text);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-weight: 550;
  font-size: 14px;
}

input[type='text'],
input[type='password'],
input[type='email'] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px stops phones zooming in on focus */
}

input:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

input[type='text']:focus,
input[type='password']:focus {
  border-color: var(--sky);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--navy);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-text);
  font: 600 15px/1 'Poppins', system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--primary-hover);
}

.form .button {
  width: 100%;
  margin-top: 4px;
}

.button-quiet {
  background: var(--quiet);
  color: var(--text);
}

.button-quiet:hover {
  background: var(--quiet-hover);
}

.alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid;
  font-size: 14px;
}

.alert p {
  margin: 0;
}

.alert p + p {
  margin-top: 4px;
}

.alert-error {
  background: var(--error-bg);
  border-color: var(--error-line);
  color: var(--error-text);
}

.alert-ok {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok-text);
}

.hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

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

.details {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.details div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 11px 14px;
}

.details div + div {
  border-top: 1px solid var(--line);
}

.details dt {
  color: var(--muted);
}

.details dd {
  margin: 0;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.apps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.app:hover {
  border-color: var(--sky);
}

.app-go {
  color: var(--sky);
  font-size: 20px;
  line-height: 1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.actions form {
  margin: 0;
}

.detail {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--quiet);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.detail code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

.foot {
  margin-top: auto;
  padding-top: 28px;
  font: 600 12px/1 'Poppins', system-ui, sans-serif;
  letter-spacing: 0.14em;
  color: var(--navy);
}

.foot-red {
  color: var(--red);
}

@media (prefers-color-scheme: dark) {
  .foot {
    color: var(--text);
  }
}

@media (max-width: 380px) {
  .page {
    padding-top: 28px;
  }

  .card {
    padding: 24px 18px;
  }
}
