
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #172033;
  background: #eef3f9;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(41, 98, 255, .12), transparent 30rem),
    radial-gradient(circle at 88% 88%, rgba(17, 183, 153, .1), transparent 28rem),
    #eef3f9;
}

button,
input {
  font: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1rem;
}

.card {
  width: min(100%, 31rem);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  overflow: hidden;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(113, 131, 158, .2);
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 4rem rgba(29, 45, 72, .14);
}

.portal-card {
  width: min(100%, 42rem);
}

.brand-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.35rem;
  place-items: center;
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .08em;
  background: linear-gradient(145deg, #1d4ed8, #2563eb 55%, #0e7490);
  border-radius: .9rem;
  box-shadow: 0 .65rem 1.5rem rgba(37, 99, 235, .25);
}

.eyebrow {
  margin: 0 0 .45rem;
  color: #2563eb;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.8rem, 6vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

h2 {
  margin: .2rem 0 .55rem;
  color: #182235;
  font-size: 1.2rem;
  line-height: 1.3;
}

.lede,
.muted,
.security-note {
  color: #5c687c;
  line-height: 1.6;
}

.lede {
  margin: .75rem 0 0;
}

.form-stack {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.75rem;
}

.field {
  display: grid;
  gap: .5rem;
  min-width: 0;
  color: #273349;
  font-size: .9rem;
  font-weight: 700;
}

.field input:not([type="hidden"]) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3.15rem;
  padding: .72rem .9rem;
  color: #111827;
  background: #fbfcfe;
  border: 1px solid #c9d3e1;
  border-radius: .7rem;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, .04);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.field input:not([type="hidden"]):hover {
  border-color: #9aabc2;
}

.field input:not([type="hidden"]):focus-visible {
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 .23rem rgba(37, 99, 235, .15);
}

.button {
  display: inline-flex;
  width: 100%;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  color: #fff;
  font-weight: 760;
  line-height: 1.2;
  cursor: pointer;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border: 0;
  border-radius: .7rem;
  box-shadow: 0 .55rem 1.1rem rgba(37, 99, 235, .2);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.button:hover {
  filter: brightness(1.04);
  box-shadow: 0 .7rem 1.4rem rgba(37, 99, 235, .25);
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: .2rem solid rgba(37, 99, 235, .3);
  outline-offset: .18rem;
}

.button:active {
  transform: translateY(0);
}

.button-danger {
  background: linear-gradient(135deg, #b42318, #d92d20);
  box-shadow: 0 .55rem 1.1rem rgba(217, 45, 32, .2);
}

.button-secondary {
  color: #344054;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}

.error,
.notice,
.warning {
  padding: .85rem 1rem;
  line-height: 1.5;
  border-radius: .7rem;
}

.error {
  margin: 1.25rem 0 0;
  color: #9f1b13;
  background: #fff1f0;
  border: 1px solid #fecaca;
}

.notice {
  margin: 1.25rem 0 0;
  color: #1849a9;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.warning {
  margin: 1.4rem 0 0;
  color: #8a2c0d;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.portal-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
}

.status-pill {
  flex: 0 0 auto;
  padding: .42rem .7rem;
  color: #17603a;
  font-size: .77rem;
  font-weight: 800;
  line-height: 1;
  text-transform: capitalize;
  background: #e9f9ef;
  border: 1px solid #a9dfbd;
  border-radius: 99rem;
}

.status-active {
  color: #9f1b13;
  background: #fff1f0;
  border-color: #fecaca;
}

.status-unsafe {
  color: #fff;
  background: #b42318;
  border-color: #912018;
}

.status-unavailable {
  color: #78350f;
  background: #fffbeb;
  border-color: #f5c451;
}

.access-panel {
  margin-top: 1.75rem;
  padding: 1.35rem;
  background: #f8fafc;
  border: 1px solid #dce4ee;
  border-radius: .9rem;
}

.panel-label {
  margin: 0;
  color: #667085;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.status-line {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin: 1rem 0;
  color: #344054;
}

.status-line strong {
  color: #111827;
  text-transform: capitalize;
}

.action-form {
  margin-top: 1.2rem;
}

.footer-actions {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e4e9f0;
}

.security-note {
  margin: 1rem 0 0;
  font-size: .84rem;
}

@media (max-width: 34rem) {
  .page-shell {
    padding: 1rem;
  }

  .card {
    padding: 1.4rem;
    border-radius: 1rem;
  }

  .portal-header {
    display: grid;
  }

  .status-pill {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
