:root {
  --auth-navy: #031143;
  --auth-royal: #0d47a1;
  --auth-cyan: #18d8ff;
  --auth-silver: #dce8f7;
  --auth-bg: #f5f8fc;
  --auth-surface: rgba(255, 255, 255, 0.92);
  --auth-border: #d9e5f2;
  --auth-text: #031143;
  --auth-secondary: #45607f;
  --auth-muted: #7288a6;
  --auth-grad-brand: linear-gradient(180deg, #031143 0%, #0d47a1 100%);
  --auth-grad-cyan: linear-gradient(180deg, #0d47a1 0%, #18d8ff 100%);
  --auth-shadow-md: 0 8px 24px rgba(3, 17, 67, 0.1);
  --auth-shadow-lg: 0 16px 40px rgba(3, 17, 67, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  font-family: "Manrope", sans-serif;
  color: var(--auth-text);
  background:
    radial-gradient(circle at top left, rgba(24, 216, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(13, 71, 161, 0.14), transparent 32%),
    linear-gradient(180deg, #071a3d 0%, #031143 100%);
}

.auth-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: center;
}

.auth-shell.auth-shell-wide {
  grid-template-columns: 0.84fr 1.16fr;
}

.auth-hero,
.auth-card {
  border-radius: 30px;
}

.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(24, 216, 255, 0.26), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    var(--auth-grad-brand);
  box-shadow: var(--auth-shadow-lg);
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: auto auto -18% -12%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 216, 255, 0.26), transparent 72%);
  filter: blur(18px);
}

.auth-logo {
  width: min(220px, 100%);
  position: relative;
  z-index: 1;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(220, 232, 247, 0.16);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-badge--light {
  background: rgba(24, 216, 255, 0.1);
  border-color: rgba(13, 71, 161, 0.12);
  color: var(--auth-royal);
}

.auth-hero h1,
.auth-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.04;
}

.auth-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
}

.auth-hero p,
.auth-card p,
.saved-account p,
.auth-links a {
  margin: 0;
}

.auth-copy {
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.auth-copy p {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.auth-chip-row,
.auth-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.auth-chip-row span,
.auth-metrics article {
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(220, 232, 247, 0.14);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  font-size: 0.88rem;
}

.auth-metrics {
  gap: 12px;
}

.auth-metrics article {
  min-width: 140px;
}

.auth-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

.auth-card {
  padding: 34px;
  background: var(--auth-surface);
  border: 1px solid rgba(217, 229, 242, 0.88);
  box-shadow: var(--auth-shadow-lg);
  backdrop-filter: blur(16px);
}

.auth-card-head {
  display: grid;
  gap: 10px;
}

.auth-card-head p {
  color: var(--auth-secondary);
  line-height: 1.75;
}

.auth-form {
  margin-top: 26px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-grid .field-full {
  grid-column: 1 / -1;
}

.auth-field {
  position: relative;
  display: grid;
  gap: 10px;
}

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

.auth-field .auth-input-wrap {
  position: relative;
}

.auth-field .auth-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-royal);
  font-size: 0.95rem;
}

.auth-field input,
.auth-field select {
  width: 100%;
  height: 56px;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--auth-text);
  padding: 0 18px 0 50px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: rgba(24, 216, 255, 0.86);
  box-shadow: 0 0 0 4px rgba(24, 216, 255, 0.12);
}

.auth-field .auth-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(13, 71, 161, 0.08);
  color: var(--auth-royal);
  cursor: pointer;
}

.auth-button,
.auth-button-secondary {
  width: 100%;
  min-height: 56px;
  border: 1px solid transparent;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.auth-button:hover,
.auth-button-secondary:hover {
  transform: translateY(-2px);
}

.auth-button {
  color: #ffffff;
  background: var(--auth-grad-cyan);
  box-shadow: 0 16px 30px rgba(13, 71, 161, 0.22);
}

.auth-button-secondary {
  margin-top: 14px;
  color: var(--auth-text);
  background: #ffffff;
  border-color: rgba(13, 71, 161, 0.16);
  box-shadow: var(--auth-shadow-md);
}

.auth-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

.auth-links a,
.auth-switch {
  color: var(--auth-royal);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.saved-account {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(24, 216, 255, 0.12), transparent 40%),
    rgba(238, 244, 250, 0.92);
  border: 1px solid rgba(217, 229, 242, 0.9);
}

.saved-account h3 {
  margin: 6px 0 8px;
  font-family: "Space Grotesk", sans-serif;
}

.saved-label {
  color: var(--auth-secondary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.auth-stepper {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-step {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(238, 244, 250, 0.76);
  border: 1px solid rgba(217, 229, 242, 0.9);
  color: var(--auth-secondary);
  font-weight: 700;
  text-align: center;
}

.auth-step.is-active {
  color: var(--auth-royal);
  background: rgba(24, 216, 255, 0.1);
  border-color: rgba(13, 71, 161, 0.14);
}

.auth-note {
  color: var(--auth-secondary);
  line-height: 1.75;
}

@media (max-width: 980px) {
  .auth-shell,
  .auth-shell.auth-shell-wide {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  body.auth-body {
    padding: 16px;
  }

  .auth-shell {
    min-height: auto;
    gap: 18px;
  }

  .auth-card {
    order: 1;
  }

  .auth-hero {
    order: 2;
    min-height: auto;
    gap: 18px;
  }

  .auth-card,
  .auth-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-grid .field-full {
    grid-column: auto;
  }

  .auth-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .auth-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
