:root {
  color: #15233b;
  background: #eef2f7;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgb(60 107 168 / 16%), transparent 34rem),
    linear-gradient(145deg, #f7f9fc 0%, #e8edf4 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(rgb(29 55 90 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(29 55 90 / 5%) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

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

.access-card {
  width: min(100%, 460px);
  padding: 42px;
  border: 1px solid rgb(27 50 83 / 10%);
  border-radius: 22px;
  background: rgb(255 255 255 / 92%);
  box-shadow:
    0 30px 80px rgb(24 45 75 / 13%),
    0 2px 8px rgb(24 45 75 / 5%);
  backdrop-filter: blur(18px);
}

.access-card.compact {
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  margin-bottom: 58px;
  color: #60718a;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: white;
  background: #172d4d;
  box-shadow: 0 8px 18px rgb(23 45 77 / 22%);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  place-items: center;
}

.brand-rule {
  width: 1px;
  height: 20px;
  margin: 0 13px;
  background: #d4dce7;
}

.brand-name {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro {
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 9px;
  color: #3567a3;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #142946;
  font-size: clamp(32px, 7vw, 42px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.subtitle {
  margin: 13px 0 0;
  color: #687990;
  font-size: 16px;
  line-height: 1.55;
}

.alert {
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid #efc8c4;
  border-radius: 10px;
  color: #7a2f2a;
  background: #fff5f4;
  font-size: 14px;
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  color: #334966;
  font-size: 13px;
  font-weight: 680;
}

input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #cbd5e2;
  border-radius: 11px;
  outline: none;
  color: #142946;
  background: #fbfcfe;
  font: inherit;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

input:hover {
  border-color: #aebbd0;
  background: white;
}

input:focus-visible {
  border-color: #3567a3;
  background: white;
  box-shadow: 0 0 0 4px rgb(53 103 163 / 14%);
}

button,
.button-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-top: 5px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: #172d4d;
  box-shadow: 0 12px 25px rgb(23 45 77 / 22%);
  font: inherit;
  font-size: 15px;
  font-weight: 690;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
}

button:hover,
.button-link:hover {
  background: #21446f;
  box-shadow: 0 14px 28px rgb(23 45 77 / 27%);
  transform: translateY(-1px);
}

button:focus-visible,
.button-link:focus-visible {
  outline: 3px solid rgb(53 103 163 / 35%);
  outline-offset: 3px;
}

.compact .button-link {
  margin-top: 28px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 34px;
  color: #78879a;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3c9970;
  box-shadow: 0 0 0 4px rgb(60 153 112 / 12%);
}

@media (max-width: 520px) {
  .shell {
    padding: 16px;
  }

  .access-card {
    padding: 30px 24px;
    border-radius: 18px;
  }

  .brand {
    margin-bottom: 44px;
  }
}

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