@font-face {
  font-family: "Sora";
  src: url("/fonts/sora.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --primary: #0057ce;
  --brand: #0094c9;
  --sky: #6edbfc;
  --ice: #c6f4ff;
  --background: #f8ffff;
  --border: #cce6ef;
  --text: #0b1f3b;
  --muted: #52657a;
  --error: #c62828;
  --success: #1b7f4b;
  --white: #ffffff;
  --hero: linear-gradient(140deg, #0057ce 0%, #0094c9 60%, #6edbfc 100%);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font: 400 16px/1.5 "Manrope", system-ui, sans-serif;
}

.hero {
  background: var(--hero);
  color: var(--white);
  padding: 28px 24px 64px;
}

.hero-inner, .content { max-width: 440px; margin: 0 auto; }

.wordmark {
  font: 700 20px/1.3 "Sora", system-ui, sans-serif;
  color: var(--white);
  text-decoration: none;
}

h1 {
  font: 800 28px/1.2 "Sora", system-ui, sans-serif;
  letter-spacing: -0.4px;
  margin: 32px 0 8px;
}

.hero p { margin: 0; opacity: 0.92; }

.content { padding: 0 16px 40px; margin-top: -40px; }

.card {
  background: var(--white);
  border: 1px solid rgba(204, 230, 239, 0.6);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 87, 206, 0.12);
  padding: 22px 18px;
}

.card h2 {
  font: 700 20px/1.3 "Sora", system-ui, sans-serif;
  margin: 0 0 8px;
}

.card p { margin: 0 0 12px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ice);
  display: grid; place-items: center;
  margin-bottom: 14px;
  font-size: 24px;
}

label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }

.field { position: relative; }

input[type="password"], input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 64px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  color: var(--text);
  background: var(--white);
}

input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
input[aria-invalid="true"] { border-color: var(--error); }

.toggle {
  position: absolute; right: 4px; top: 2px;
  min-width: 44px; min-height: 44px;
  border: 0; background: none;
  color: var(--primary); font: 600 13px "Manrope", sans-serif;
  cursor: pointer;
}

.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.error { font-size: 13px; color: var(--error); margin-top: 6px; }
.error:empty { display: none; }

.button {
  display: block; width: 100%;
  min-height: 50px; margin-top: 20px;
  border: 0; border-radius: 14px;
  background: var(--primary); color: var(--white);
  font: 700 15px "Manrope", sans-serif;
  cursor: pointer;
}
.button:disabled { opacity: 0.6; cursor: progress; }
.button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.footer { text-align: center; font-size: 12px; color: var(--muted); margin-top: 24px; }

[hidden] { display: none !important; }

/* Headings get focus from script so screen readers announce the new state; no visible ring needed. */
[tabindex="-1"]:focus { outline: none; }
