body.auth-page {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: #0f3349;
  background: linear-gradient(160deg, #eaf5fb 0%, #e4f3fb 42%, #edf8f7 100%);
}

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

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1fr);
}

.auth-brand {
  position: relative;
  overflow: hidden;
  padding: 40px 34px 34px;
  background: linear-gradient(180deg, #dff0f8 0%, #cae7f5 54%, #b8dff0 100%);
  border-right: 1px solid rgba(56, 182, 232, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand::before,
.auth-brand::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.auth-brand::before {
  width: 280px;
  height: 280px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(56, 182, 232, 0.18) 0%, transparent 68%);
}

.auth-brand::after {
  width: 220px;
  height: 220px;
  right: -80px;
  bottom: -60px;
  background: radial-gradient(circle, rgba(0, 194, 203, 0.14) 0%, transparent 70%);
}

.auth-brand-top,
.auth-brand-bottom {
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.auth-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2d8bba, #00c2cb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(45, 139, 186, 0.26);
}

.auth-logo-icon svg {
  width: 20px;
  height: 20px;
}

.auth-logo-text {
  font-family: "Fraunces", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #1a5f7a;
}

.auth-logo-text span {
  color: #38b6e8;
}

.auth-eyebrow {
  margin-top: 42px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #6ea8c8;
}

.auth-brand h1 {
  margin: 12px 0 0;
  font-family: "Fraunces", serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: -1.6px;
  max-width: 520px;
}

.auth-brand p {
  max-width: 480px;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: #5b8ea9;
}

.auth-brand-card {
  max-width: 460px;
  padding: 22px 22px 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 36px rgba(26, 95, 122, 0.08);
}

.auth-brand-card-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6ea8c8;
}

.auth-brand-card-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #2d6480;
}

.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
}

.auth-card {
  width: min(520px, 100%);
  padding: 34px 34px 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(56, 182, 232, 0.12);
  box-shadow: 0 24px 80px rgba(15, 51, 73, 0.14);
  backdrop-filter: blur(12px);
}

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

.auth-card-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -0.9px;
}

.auth-card-subtitle {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: #6ea8c8;
}

.auth-stack {
  display: grid;
  gap: 18px;
}

.auth-status,
.auth-error-summary {
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
}

.auth-status {
  background: rgba(46, 191, 145, 0.12);
  color: #1c8c69;
  border: 1px solid rgba(46, 191, 145, 0.2);
}

.auth-error-summary {
  background: rgba(224, 92, 108, 0.08);
  color: #b53c4a;
  border: 1px solid rgba(224, 92, 108, 0.16);
}

.auth-error-summary ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

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

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

.auth-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #2d6480;
}

.auth-input,
.auth-select {
  width: 100%;
  padding: 14px 15px;
  border-radius: 15px;
  border: 1.5px solid rgba(56, 182, 232, 0.18);
  background: rgba(56, 182, 232, 0.05);
  color: #0f3349;
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-input:focus,
.auth-select:focus {
  background: #fff;
  border-color: #2d8bba;
  box-shadow: 0 0 0 4px rgba(45, 139, 186, 0.1);
}

.auth-input::placeholder {
  color: #9dc4d8;
}

.auth-error {
  font-size: 13px;
  color: #c24757;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #2d6480;
}

.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: #2d8bba;
}

.auth-link {
  color: #2d8bba;
  text-decoration: none;
  font-weight: 700;
}

.auth-link:hover {
  color: #1a5f7a;
}

.auth-button,
.auth-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 20px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-button {
  color: #fff;
  background: linear-gradient(135deg, #2d8bba, #38b6e8);
  box-shadow: 0 12px 30px rgba(45, 139, 186, 0.22);
}

.auth-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(45, 139, 186, 0.26);
}

.auth-button-secondary {
  background: #fff;
  color: #2d8bba;
  border: 1.5px solid rgba(45, 139, 186, 0.2);
}

.auth-button-secondary:hover {
  background: #f0f8fd;
}

.auth-footer {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: #5b8ea9;
}

.auth-code-toggle {
  margin-top: 6px;
  text-align: center;
  font-size: 14px;
  color: #5b8ea9;
}

.auth-code-toggle button {
  background: none;
  border: none;
  color: #2d8bba;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.auth-code-toggle button:hover {
  color: #1a5f7a;
}

.auth-hidden {
  display: none !important;
}

.auth-step-indicator {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #6ea8c8;
}

.auth-step-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(56, 182, 232, 0.35);
  flex-shrink: 0;
}

.auth-step-indicator-dot.done {
  background: #2ebf91;
}

.auth-plan-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(56, 182, 232, 0.20);
  background: rgba(56, 182, 232, 0.06);
}

.auth-plan-chip.is-pro {
  border-color: rgba(123, 108, 246, 0.28);
  background: rgba(123, 108, 246, 0.07);
}

.auth-plan-chip-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.auth-plan-chip-name {
  font-weight: 800;
  color: #183047;
  font-size: 14.5px;
}

.auth-plan-chip-note {
  font-size: 12.5px;
  color: #5f7892;
  line-height: 1.5;
}

.auth-plan-chip .auth-link {
  flex-shrink: 0;
  font-size: 13.5px;
}

.auth-plan-chip .auth-error {
  flex-basis: 100%;
}

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

  .auth-brand {
    min-height: 0;
    padding: 28px 22px 24px;
  }

  .auth-brand h1 {
    font-size: 34px;
  }

  .auth-main {
    padding: 20px 16px 26px;
  }

  .auth-card {
    padding: 26px 20px 24px;
    border-radius: 24px;
  }
}
