:root {
  color-scheme: light;
  --navy: #172b50;
  --blue: #2864ff;
  --background: #f3f5f9;
  --text: #17223a;
  --muted: #657086;
  --border: #e8edf4;
  --green: #15803d;
  --red: #b91c1c;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  display: grid;
  place-items: center;
  padding: 36px 16px;
}

.portal {
  width: 100%;
  max-width: 560px;
}

.card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 55px rgba(23, 43, 80, .09);
}

.brand {
  padding: 30px 24px;
  text-align: center;
  background: var(--navy);
  color: white;
}

.institution {
  margin: 0 0 20px;
  color: #a9c2ff;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: bold;
}

.logo {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
  padding: 8px;
  border-radius: 18px;
  background: white;
  margin: 0 auto 14px;
}

.brand-name {
  font-size: 31px;
  font-weight: 700;
  margin: 0;
}

.tagline {
  font-size: 13px;
  margin: 10px 0 0;
  color: #dbe6ff;
}

.content {
  text-align: center;
  padding: 38px 32px;
}

.status-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 43px;
  font-weight: bold;
}

.status-icon.neutral {
  background: #eaf0ff;
  color: var(--blue);
}

.status-icon.success {
  background: #e7f7ee;
  color: var(--green);
}

.status-icon.error {
  background: #fdecec;
  color: var(--red);
}

.status-icon.warning {
  background: #fff4df;
  color: #92620b;
}

.status-icon.loading {
  font-size: 0;
  background: #eaf0ff;
}

.status-icon.loading::after {
  content: "";
  width: 34px;
  height: 34px;
  border: 4px solid #b7cbff;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: bold;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(23px, 5vw, 29px);
  line-height: 1.25;
  letter-spacing: -.6px;
  margin: 0 0 18px;
}

#description,
.detail {
  font-size: 15px;
  line-height: 1.8;
  color: #39465b;
  margin: 12px 0;
}

button {
  border: 0;
  width: 100%;
  background: var(--blue);
  color: white;
  border-radius: 12px;
  font-size: 15px;
  font-weight: bold;
  padding: 17px 20px;
  margin-top: 18px;
  cursor: pointer;
  font-family: inherit;
}

button:hover {
  background: #2053d8;
}

button:disabled {
  opacity: .6;
  cursor: wait;
}

button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

.notice {
  text-align: left;
  padding: 18px;
  background: #f3f5f9;
  border: 1px solid var(--border);
  border-radius: 13px;
  margin: 24px 0 0;
}

.notice strong {
  font-size: 14px;
}

.notice p {
  font-size: 13px;
  line-height: 1.7;
  margin: 8px 0 0;
  color: #39465b;
}

.welcome {
  color: var(--navy);
  font-size: 15px;
  font-weight: bold;
  margin: 26px 0 0;
}

.footer {
  background: #f8faff;
  border-top: 1px solid var(--border);
  padding: 25px 20px;
  text-align: center;
}

.footer strong {
  font-size: 14px;
  color: var(--navy);
}

.footer p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0;
}

.footer small {
  display: block;
  font-size: 11px;
  color: #657086;
  margin-top: 16px;
}

.privacy {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  padding: 0 16px;
  margin-top: 20px;
}

@media (max-width: 480px) {
  body {
    padding: 18px 12px;
  }
  .brand {
    padding: 25px 16px;
  }
  .content {
    padding: 30px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
  }
}
