:root {
  color-scheme: light;
  --navy: #092b5d;
  --navy-strong: #061e43;
  --blue: #1268d5;
  --blue-soft: #eaf3ff;
  --ink: #17243a;
  --muted: #64748b;
  --line: #d9e3f0;
  --surface: #ffffff;
  --page: #f5f8fc;
  --success: #107346;
  --success-soft: #ecfbf3;
  --danger: #b4233e;
  --danger-soft: #fff1f3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(18, 104, 213, 0.12), transparent 31rem),
    var(--page);
}

button, input { font: inherit; }

.page-shell {
  width: min(100% - 2rem, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 5.5rem) 0 2rem;
}

.brand-block {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.brand-mark {
  display: grid;
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 1.1rem;
  color: #fff;
  background: linear-gradient(145deg, #146edf, #092b5d);
  box-shadow: 0 0.75rem 1.5rem rgba(9, 43, 93, 0.18);
  font-size: 1.65rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0.35rem; font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -0.03em; }
.brand-copy { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; }

.validation-card {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 1.5rem 4rem rgba(20, 43, 78, 0.08);
}

.card-heading { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.75rem; }
.status-dot { width: 0.65rem; height: 0.65rem; margin-top: 0.32rem; border-radius: 50%; background: #52b788; box-shadow: 0 0 0 0.35rem #e8f8ef; }
h2 { margin-bottom: 0; font-size: clamp(1.2rem, 3vw, 1.5rem); letter-spacing: -0.025em; }

label { display: block; margin-bottom: 0.55rem; color: var(--ink); font-size: 0.9rem; font-weight: 700; }
.input-row { display: flex; gap: 0.65rem; }
input {
  width: 100%;
  min-width: 0;
  padding: 0.86rem 1rem;
  border: 1px solid #c9d6e7;
  border-radius: 0.75rem;
  outline: none;
  color: var(--ink);
  background: #fbfdff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input::placeholder { color: #96a5b8; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 0.22rem rgba(18, 104, 213, 0.14); }
input.invalid { border-color: var(--danger); box-shadow: 0 0 0 0.22rem rgba(180, 35, 62, 0.1); }

button {
  display: inline-flex;
  min-width: 7.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.86rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  color: #fff;
  background: var(--navy);
  cursor: pointer;
  font-weight: 750;
  transition: background 160ms ease, transform 160ms ease;
}
button:hover { background: var(--navy-strong); }
button:active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: 0.72; }
.spinner { display: none; width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin 700ms linear infinite; }
button.loading .button-label { display: none; }
button.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.helper-text, .field-error { margin: 0.55rem 0 0; font-size: 0.78rem; line-height: 1.5; }
.helper-text { color: var(--muted); }
.field-error { color: var(--danger); }

.result { display: flex; gap: 0.9rem; align-items: flex-start; margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; }
.result.success { border-color: #a9ddbf; background: var(--success-soft); }
.result.error { border-color: #f3b6c2; background: var(--danger-soft); }
.result-icon { display: grid; flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 50%; font-size: 1.15rem; font-weight: 800; }
.result.success .result-icon { color: var(--success); background: #c9f0d9; }
.result.error .result-icon { color: var(--danger); background: #ffd6de; }
.result-content { min-width: 0; }
.result-label { margin-bottom: 0.6rem; font-weight: 800; }
.result.success .result-label { color: var(--success); }
.result.error .result-label { color: var(--danger); }
.student-details { display: grid; gap: 0.3rem; margin-bottom: 0.75rem; }
.student-details p { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.5rem; margin-bottom: 0; font-size: 0.9rem; }
.student-details span { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }
.student-details strong { overflow-wrap: anywhere; }
.result-message { margin-bottom: 0; color: var(--ink); font-size: 0.9rem; }
.privacy-note { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.76rem; }
footer { padding: 1.5rem 0 0; color: #8998aa; font-size: 0.75rem; text-align: center; }

@media (max-width: 520px) {
  .page-shell { width: min(100% - 1.25rem, 760px); padding-top: 1.5rem; }
  .brand-block { margin-bottom: 1.5rem; }
  .brand-mark { flex-basis: 3rem; width: 3rem; height: 3rem; border-radius: 0.9rem; }
  .brand-copy { font-size: 0.85rem; }
  .validation-card { border-radius: 1.1rem; }
  .input-row { flex-direction: column; }
  button { width: 100%; }
}
