:root {
  --auth-primary: #005de0;
  --auth-primary-dark: #0049b0;
  --auth-navy: #13243f;
  --auth-text: #233247;
  --auth-muted: #718196;
  --auth-border: #dce5f0;
  --auth-soft: #f4f8fd;
  --auth-success: #198754;
  --auth-warning: #9a6500;
  --auth-danger: #b42318;
}

* {
  box-sizing: border-box;
}

.auth-page {
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 93, 224, 0.13),
      transparent 31rem
    ),
    #f4f7fb;
  color: var(--auth-text);
  min-height: 100vh;
}

.auth-main {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 2rem 0;
}

.auth-card {
  background: #ffffff;
  border: 1px solid var(--auth-border);
  border-radius: 1.25rem;
  box-shadow: 0 1.2rem 3.5rem rgba(19, 36, 63, 0.12);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.auth-brand {
  align-items: center;
  color: var(--auth-navy);
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 800;
  gap: 0.65rem;
  text-decoration: none;
}

.auth-brand:hover {
  color: var(--auth-navy);
}

.auth-brand-icon {
  align-items: center;
  background: var(--auth-primary);
  border-radius: 0.75rem;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.1rem;
  height: 2.45rem;
  justify-content: center;
  width: 2.45rem;
}

.auth-brand strong {
  color: var(--auth-primary);
}

.auth-heading {
  margin: 2rem 0 1.5rem;
}

.auth-eyebrow {
  align-items: center;
  color: var(--auth-primary);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  gap: 0.4rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.auth-heading h1 {
  color: var(--auth-navy);
  font-size: clamp(1.75rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0.45rem 0 0.55rem;
}

.auth-heading p {
  color: var(--auth-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.auth-alert {
  align-items: flex-start;
  border: 0;
  border-radius: 0.85rem;
  display: flex;
  font-size: 0.86rem;
  gap: 0.75rem;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
}

.auth-alert i {
  font-size: 1.05rem;
  margin-top: 0.1rem;
}

.auth-alert strong {
  display: block;
  margin-bottom: 0.18rem;
}

.auth-alert-success {
  background: #eaf8ef;
  color: #176a3c;
}

.auth-alert-error {
  background: #fff0f0;
  color: var(--auth-danger);
}

.auth-form .form-label {
  color: #4b5b70;
  font-size: 0.81rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.auth-input-group .input-group-text {
  background: #f7faff;
  border-color: var(--auth-border);
  color: var(--auth-primary);
  width: 2.75rem;
}

.auth-input-group .form-control {
  border-color: var(--auth-border);
  color: var(--auth-text);
  font-size: 0.91rem;
  min-height: 2.85rem;
}

.auth-input-group .form-control:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 93, 224, 0.12);
}

.auth-field-help {
  color: var(--auth-muted);
  display: block;
  font-size: 0.75rem;
  margin-top: 0.4rem;
}

.auth-notice {
  align-items: flex-start;
  background: var(--auth-soft);
  border-left: 3px solid var(--auth-primary);
  border-radius: 0.45rem;
  color: #526174;
  display: flex;
  font-size: 0.8rem;
  gap: 0.6rem;
  line-height: 1.45;
  margin: 1.3rem 0;
  padding: 0.8rem 0.9rem;
}

.auth-notice i {
  color: var(--auth-primary);
  font-size: 1rem;
}

.auth-notice p {
  margin: 0;
}

.auth-submit {
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 2.9rem;
  width: 100%;
}

.auth-footer {
  align-items: center;
  color: var(--auth-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.3rem;
  justify-content: center;
  margin-top: 1.35rem;
}

.auth-footer a {
  color: var(--auth-primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--auth-primary-dark);
  text-decoration: underline;
}

.auth-back-link {
  color: var(--auth-muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 1.6rem;
  text-align: center;
  text-decoration: none;
}

.auth-back-link:hover {
  color: var(--auth-primary);
}

@media (max-width: 575.98px) {
  .auth-main {
    align-items: flex-start;
    padding: 1rem 0;
  }

  .auth-card {
    border-radius: 1rem;
    padding: 1.35rem;
  }

  .auth-heading {
    margin-top: 1.6rem;
  }
}
