:root {
  color-scheme: light;
  --access-accent: #1667d9;
  --access-accent-dark: #0d4eae;
  --access-ink: #11223b;
  --access-muted: #65758b;
  --access-line: #d9e1ec;
  --access-danger: #b42335;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(78, 143, 232, 0.12), transparent 34%),
    linear-gradient(155deg, #f8fafd, #edf2f8);
  color: var(--access-ink);
  font-family: inherit;
}

button,
input {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(22, 103, 217, 0.24);
  outline-offset: 2px;
}

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

.auth-panel-minimal {
  width: min(420px, 100%);
}

.auth-panel-onboarding { width: min(520px, 100%); }

.auth-card {
  padding: clamp(28px, 7vw, 42px);
  border: 1px solid rgba(205, 216, 231, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(25, 45, 75, 0.13);
  backdrop-filter: blur(14px);
}

.auth-mark {
  position: relative;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: linear-gradient(145deg, #246fda, #0f4da9);
  box-shadow: 0 10px 24px rgba(22, 103, 217, 0.24);
}

.auth-mark::before,
.auth-mark::after {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.9);
  content: "";
}

.auth-mark::before {
  inset: 11px 14px 10px;
  border-radius: 9px 9px 12px 12px;
}

.auth-mark::after {
  top: 18px;
  left: 20px;
  width: 5px;
  height: 8px;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-card-heading {
  margin-bottom: 26px;
}

.auth-card-heading h1 {
  margin: 0 0 8px;
  color: var(--access-ink);
  font-size: 1.8rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.auth-card-heading p {
  margin: 0;
  color: var(--access-muted);
  font-size: 0.9rem;
}

.auth-step-label { display: block; margin-bottom: 8px; color: var(--access-accent); font-size: .7rem; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.auth-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.auth-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--access-line); border-radius: 10px; background: #f8fafd; }
.auth-steps li > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #e6ecf4; font-size: .72rem; font-weight: 760; }
.auth-steps li > div { display: grid; gap: 2px; }
.auth-steps strong { font-size: .73rem; }
.auth-steps small { color: var(--access-muted); font-size: .64rem; }
.auth-steps .is-current { border-color: #9ebee8; background: #eef5ff; }
.auth-steps .is-current > span { background: var(--access-accent); color: #fff; }
.password-guidance { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid #cbdcf2; border-radius: 9px; background: #f3f7fd; font-size: .74rem; }
.password-guidance span { color: var(--access-muted); }

.auth-form {
  display: grid;
  gap: 17px;
}

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

.field label {
  font-size: 0.82rem;
  font-weight: 680;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd6e4;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 33, 61, 0.03);
}

.field input:hover {
  border-color: #9fb0c7;
}

.field input:focus {
  border-color: var(--access-accent);
  outline: 3px solid rgba(22, 103, 217, 0.11);
}

.field > span,
.validation-summary {
  color: var(--access-danger);
  font-size: 0.76rem;
}

.validation-summary:empty {
  display: none;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--access-muted);
  font-size: 0.82rem;
}

.checkbox-field input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--access-accent);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--access-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(22, 103, 217, 0.19);
}

.button:hover {
  background: var(--access-accent-dark);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button.full {
  width: 100%;
}

.callout {
  display: grid;
  gap: 2px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #e8c98a;
  border-radius: 9px;
  background: #fff8e8;
  color: #705522;
  font-size: 0.78rem;
}

.auth-footnote {
  margin: 22px 0 0;
  color: var(--access-muted);
  font-size: 0.7rem;
  text-align: center;
}

@media (max-width: 480px) {
  .auth-shell-minimal {
    align-items: start;
    padding: 18px 12px;
  }

  .auth-card {
    margin-top: 7vh;
    padding: 28px 22px;
    border-radius: 15px;
  }
}

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