.auth-section {
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 78px 0 100px;
  background:
    radial-gradient(circle at 14% 10%, rgba(185, 242, 218, .55), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(125, 184, 255, .4), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 68%);
}

.auth-shell {
  width: min(calc(100% - 40px), 660px);
  margin-inline: auto;
}

.auth-shell-wide {
  width: min(calc(100% - 40px), 760px);
}

.auth-card {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-2), var(--mint-dark));
}

.auth-card h1 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.auth-card h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.auth-card p {
  margin-bottom: 0;
}

.auth-heading {
  margin-bottom: 30px;
  text-align: center;
}

.auth-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: var(--sky);
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.auth-icon-success {
  background: #dff7ed;
  color: var(--mint-dark);
}

.auth-icon-warning {
  background: #fff0e6;
  color: #9a4e1c;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

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

.auth-field label {
  color: var(--ink);
  font-weight: 800;
}

.auth-form input:not([type="checkbox"]),
.auth-form select,
.auth-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(16, 32, 53, .04);
}

.auth-form input:not([type="checkbox"]):focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(35, 103, 209, .14);
}

.auth-form .helptext,
.auth-help {
  color: var(--muted);
  font-size: .88rem;
}

.auth-form .helptext ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.auth-form .errorlist {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #f2b8b5;
  border-radius: 9px;
  background: #fff1f0;
  color: #8c2420;
  list-style: none;
  font-size: .9rem;
}

.auth-messages {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-message {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sky);
  color: var(--ink);
}

.auth-message-error {
  border-color: #f2b8b5;
  background: #fff1f0;
  color: #8c2420;
}

.auth-message-success {
  border-color: #a8dfc9;
  background: #e9faf3;
  color: #0b6149;
}

.auth-message-warning {
  border-color: #f4cf9d;
  background: #fff7e8;
  color: #7b4d13;
}

.auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 18px;
  margin-top: 24px;
  font-weight: 700;
}

.auth-links a {
  color: var(--blue);
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-links .btn-primary {
  color: #fff;
}

.auth-links .btn-light {
  color: var(--ink);
}

.auth-status .auth-links .btn {
  margin-top: 0;
}

.auth-summary {
  display: grid;
  gap: 14px;
  margin: 26px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}

.auth-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.auth-summary-item::before {
  content: "✓";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: #084c3a;
  font-weight: 900;
}

.auth-summary-item span {
  color: var(--muted);
}

.auth-status {
  text-align: center;
}

.auth-status .btn {
  margin-top: 26px;
}

.auth-password-match {
  display: none;
  color: #8c2420;
  font-size: .88rem;
}

.auth-password-match.visible {
  display: block;
}

.auth-error-code {
  margin-bottom: 8px;
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: clamp(4rem, 18vw, 8rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.08em;
}

@media (max-width: 720px) {
  .auth-section {
    min-height: auto;
    padding: 54px 0 74px;
  }

  .auth-shell,
  .auth-shell-wide {
    width: min(calc(100% - 28px), 660px);
  }

  .auth-card {
    padding: 28px 22px;
    border-radius: 20px;
  }
}
