:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f6fb;
  color: #10213a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, .13), transparent 34rem),
    linear-gradient(145deg, #f8fafc 0%, #edf3fb 100%);
}

.portal-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.portal-card {
  width: min(100%, 460px);
  padding: 38px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(15, 35, 65, .14);
}

.portal-brand {
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

h1 {
  margin: 10px 0 8px;
  color: #0f2139;
  font-size: clamp(28px, 6vw, 38px);
  letter-spacing: -.035em;
}

.portal-intro,
.portal-note {
  color: #64748b;
  line-height: 1.55;
}

.portal-intro { margin: 0 0 24px; }
.portal-note { margin: 18px 0 0; font-size: 12px; }

.portal-form { display: grid; gap: 9px; }
.portal-form label { margin-top: 6px; font-size: 13px; font-weight: 700; }

.portal-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.portal-form input:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, .15);
}

.portal-form button {
  min-height: 46px;
  margin-top: 12px;
  border: 0;
  border-radius: 11px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.portal-form button:hover { background: #1d4ed8; }
.portal-form button:disabled { cursor: wait; opacity: .68; }

.portal-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: #b42318;
  font-size: 13px;
  line-height: 1.45;
}

.portal-status.is-progress { color: #1d4ed8; }

@media (max-width: 520px) {
  .portal-card { padding: 28px 22px; border-radius: 18px; }
}
