/* Alpine Finance: sign-in page. Same palette as the board, large type for low vision. */
:root {
  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --bg: #0b0f17;
  --surface: #131a28;
  --text: #f3f6fb;
  --muted: #aeb9ca;
  --accent: #facc15;
  --on-accent: #14110a;
  --danger: #f87171;
  --line: color-mix(in oklab, var(--surface), var(--text) 22%);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(18px, 1vw + 12px, 24px) / 1.4 var(--font);
}

.login { width: min(100%, 26em); }

.lang {
  float: right;
  padding: 0.3em 0.7em;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.lang:hover, .lang:focus-visible { border-color: var(--accent); outline: none; }

h1 { margin: 0; font-size: 2em; font-weight: 800; letter-spacing: -0.01em; }
h1 { display: flex; align-items: center; color: #ffffff; }
h1 img { width: 1.3em; height: 1.3em; margin-right: 0.4em; }
h1 span { color: #ee3b30; }
.sub { margin: 0.2em 0 1.2em; color: var(--muted); font-weight: 600; }

.card {
  display: grid;
  gap: 0.35em;
  padding: 1.3em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

label { font-weight: 700; margin-top: 0.4em; }

input {
  width: 100%;
  min-height: 56px;
  padding: 0.4em 0.6em;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 10px;
}
input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3em; }
.pw-eye {
  position: absolute; right: 0.3em; top: 50%; transform: translateY(-50%);
  width: 2.4em; height: 2.4em; min-height: 0; margin: 0; padding: 0;
  display: grid; place-items: center;
  background: transparent; color: var(--muted); border-radius: 6px;
}
.pw-eye:hover, .pw-eye:focus-visible { color: var(--text); background: transparent; filter: none; outline: 2px solid var(--accent); outline-offset: 2px; }
.pw-eye svg { width: 1.3em; height: 1.3em; }
.pw-eye .strike { display: none; }
.pw-eye.is-on .strike { display: block; }

.remember { display: flex; align-items: center; gap: 0.5em; margin-top: 0.7em; font-weight: 600; cursor: pointer; }
.remember input { width: 1.4em; height: 1.4em; min-height: 0; margin: 0; accent-color: var(--accent); }

.error { margin: 0.4em 0 0; color: var(--danger); font-weight: 700; }

button {
  margin-top: 0.9em;
  min-height: 60px;
  font: inherit;
  font-weight: 800;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

.foot { margin-top: 1.2em; color: var(--muted); font-size: 0.8em; text-align: center; }
