/* OA Portal account pages. Brand: navy #111B2E / #142440, blue #1E4E9E, light blue #8CC5EE. */
:root {
  --navy: #111B2E;
  --navy-2: #142440;
  --blue: #1E4E9E;
  --light: #8CC5EE;
  --text: #E8EEF7;
  --muted: #9AA8BD;
  --error: #FF8A80;
  --ok: #8BE0B0;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  max-width: 440px;
  padding: 28px 16px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

header img { width: 28px; height: 28px; }

header span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--light);
}

main {
  width: calc(100% - 32px);
  max-width: 440px;
  margin: 8px 16px 32px;
  padding: 28px;
  background: var(--navy-2);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

h1 { font-size: 24px; margin: 0 0 8px; }
h2 { font-size: 15px; margin: 24px 0 8px; color: var(--light); }
p { margin: 0 0 16px; }
.small { font-size: 14px; color: var(--muted); }
.spaced { margin-top: 24px; }

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

label { display: block; font-size: 14px; margin: 0 0 6px; color: var(--muted); }

input {
  width: 100%;
  margin: 0 0 16px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: var(--navy);
  border: 1px solid #2E3D5C;
  border-radius: 8px;
}

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

input.code { font-size: 24px; letter-spacing: 0.4em; text-align: center; }

button {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

button.secondary { background: transparent; border: 1px solid #2E3D5C; color: var(--text); }
button.link { width: auto; padding: 0; background: none; color: var(--light); font-weight: 400; text-decoration: underline; }
button:disabled { opacity: 0.6; cursor: wait; }

.stack > * + * { margin-top: 10px; }

ul.items { list-style: none; padding: 0; margin: 0 0 16px; }
ul.items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #22314F;
}
ul.items li span.small { margin: 0; }

#status { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; font-size: 14px; background: #1A2C4D; }
#status[data-kind="error"] { color: var(--error); background: #3A1F2A; }
#status[data-kind="ok"] { color: var(--ok); background: #183A2E; }
