@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-variable.woff2') format('woff2');
}

:root {
  color-scheme: light;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #14202c;
  background: #f5f8fa;
}

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

body { margin: 0; min-width: 320px; }

.portal-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 32px 20px;
}

.portal-card {
  width: min(100%, 460px);
  padding: clamp(28px, 6vw, 48px);
  border-top: 3px solid #00b4e7;
  background: #fff;
  box-shadow: 0 24px 64px -42px rgba(1, 34, 71, 0.55);
}

.portal-brand { display: inline-block; }
.portal-brand img { display: block; width: 148px; height: auto; }

.portal-label {
  margin: 44px 0 12px;
  color: #53616e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #012247;
  font-size: clamp(2rem, 7vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.portal-intro {
  margin: 18px 0 0;
  color: #53616e;
  line-height: 1.65;
}

.portal-form { margin-top: 32px; }
.field + .field { margin-top: 20px; }

label {
  display: block;
  margin-bottom: 7px;
  color: #14202c;
  font-size: 0.875rem;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cdd7e0;
  border-radius: 2px;
  background: #fff;
  color: #14202c;
  font: inherit;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #012247;
  outline-offset: 3px;
}

button {
  width: 100%;
  min-height: 48px;
  margin-top: 26px;
  padding: 12px 24px;
  border: 1px solid #012247;
  border-radius: 2px;
  background: #012247;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: #0a3762; border-color: #0a3762; }

.portal-error {
  margin-top: 24px;
  padding: 16px;
  border-left: 3px solid #9a5b12;
  background: #fff8ee;
  color: #56330a;
  font-size: 0.9rem;
  line-height: 1.55;
}
.portal-error p { margin: 0; }
.portal-error p + p { margin-top: 5px; }
.portal-error a { color: #56330a; overflow-wrap: anywhere; }

.portal-notice {
  margin: 24px 0 0;
  color: #62707c;
  font-size: 0.76rem;
  line-height: 1.55;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: #012247;
  font-size: 0.875rem;
  text-underline-offset: 3px;
}

[hidden] { display: none !important; }
