.auth-page {
  min-height: 100vh;
  background: #e8f1f7;
  color: #05080c;
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 50%, rgba(185, 210, 255, .78), transparent 38%);
}

.auth-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 540px);
  gap: clamp(48px, 8vw, 140px);
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
}

.auth-brand { display: flex; align-items: center; gap: 36px; }
.auth-brand > img { width: 146px; filter: drop-shadow(0 10px 18px rgba(21, 31, 43, .2)); }
.auth-brand span, .auth-heading span { color: #244b9d; font-size: 15px; font-weight: 800; letter-spacing: .12em; }
.auth-brand h1 { margin: 12px 0 18px; font-size: clamp(48px, 5.3vw, 76px); line-height: .92; }
.auth-brand p { max-width: 480px; margin: 0; color: #39444f; font-size: 20px; }

.auth-card {
  padding: 34px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 32px rgba(21, 31, 43, .2);
}

.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 5px; border-radius: 12px; background: #edf3f8; }
.auth-tabs button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: #667482; font: inherit; font-weight: 800; cursor: pointer; }
.auth-tabs button.is-active { background: #fff; color: #173f91; box-shadow: 0 3px 10px rgba(21, 31, 43, .12); }
.auth-form { display: grid; gap: 18px; margin-top: 32px; }
.auth-form[hidden] { display: none; }
.auth-heading { margin-bottom: 4px; }
.auth-heading h2 { margin: 6px 0 0; font-size: 30px; }
.auth-form label { display: grid; gap: 8px; color: #39444f; font-size: 14px; font-weight: 800; }
.subscription-summary { display: grid; gap: 3px; margin: 0; padding: 13px 15px; border-radius: 10px; background: #edf3f8; color: #25303b; }
.subscription-summary span { color: #667482; font-size: 13px; }
.auth-form input { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #cfdbe4; border-radius: 11px; background: #fff; color: #25303b; font: inherit; outline: none; }
.auth-form input:focus { border-color: #5f83cb; box-shadow: 0 0 0 3px rgba(95, 131, 203, .14); }
.primary-button { min-height: 52px; border: 0; border-radius: 11px; background: #173f91; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.primary-button:hover { background: #244fa8; transform: translateY(-1px); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.form-message { min-height: 20px; margin: -5px 0; color: #bb5a4f; font-size: 14px; }
.form-message.is-success { color: #438256; }
.payment-result { display: grid; gap: 16px; margin-top: 32px; }
.payment-result[hidden] { display: none; }
.payment-result > span { color: #244b9d; font-size: 14px; font-weight: 800; letter-spacing: .12em; }
.payment-result h2 { margin: -9px 0 0; font-size: 30px; }
.payment-result p { margin: 0; color: #39444f; line-height: 1.5; }
.payment-result dl { display: grid; gap: 8px; margin: 0; }
.payment-result dl div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 15px; border-radius: 10px; background: #edf3f8; }
.payment-result dt { color: #667482; }
.payment-result dd { margin: 0; font-weight: 800; text-align: right; }
.payment-result .payment-hint { color: #667482; font-size: 13px; }
.payment-link { display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; text-align: center; text-decoration: none; }

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; gap: 32px; width: min(540px, calc(100% - 28px)); }
  .auth-brand { justify-content: center; gap: 20px; }
  .auth-brand > img { width: 90px; }
  .auth-brand h1 { font-size: 38px; }
  .auth-brand p { display: none; }
}

@media (max-width: 480px) {
  .auth-shell { padding: 24px 0; }
  .auth-card { padding: 22px 18px; }
  .auth-brand span { font-size: 12px; }
  .auth-brand h1 { font-size: 31px; }
  .auth-tabs { grid-template-columns: 1fr; }
}
