:root {
  color-scheme: light;
  --paper: #FCFBFF;
  --surface: #FFFFFF;
  --brand: #0B192C;
  --brand-soft: #F0F4F9;
  --brand-blue: #1E3C72;
  --text: #2C2A29;
  --muted: #64748B;
  --border: rgba(148, 163, 184, 0.35);
  --danger: #B42318;
  --success: #027A48;
  --shadow: 0 18px 54px rgba(11, 25, 44, 0.07);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

a { color: inherit; }

.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-header,
.auth-footer {
  margin: 0 auto;
  max-width: 1120px;
  padding: 24px;
  width: 100%;
}

.auth-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.brand-lockup {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  text-decoration: none;
}

.brand-symbol { height: 28px; width: auto; }
.brand-wordmark { height: 22px; width: auto; }

.header-link,
.footer-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.header-link:hover,
.footer-link:hover { color: var(--brand); }

.auth-main {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  padding: 24px;
}

.auth-shell {
  max-width: 400px;
  width: 100%;
}

.account-shell { max-width: 400px; }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.eyebrow {
  background: var(--brand-soft);
  border: 1px solid rgba(30, 60, 114, 0.1);
  border-radius: 999px;
  color: var(--brand-blue);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  text-transform: uppercase;
}

h1 {
  color: var(--brand-blue);
  font-size: clamp(30px, 5vw, 34px);
  line-height: 1.08;
  margin: 14px 0 0;
}

.copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 10px 0 0;
}

.auth-form {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.field { display: grid; gap: 6px; }

.form-help {
  margin-top: -2px;
  text-align: right;
}

.auth-links {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 15px 0 0;
  text-align: center;
}

.inline-link {
  color: var(--brand-blue);
  font-weight: 750;
  text-decoration: none;
}

.inline-link:hover { color: var(--brand); }

.hidden { display: none !important; }

label {
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
}

input {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text);
  font: inherit;
  min-height: 50px;
  padding: 0 13px;
  width: 100%;
}

input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
  outline: none;
}

button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.primary-button {
  background: var(--brand);
  color: #FFFFFF;
  width: 100%;
}

.captcha-container {
  min-height: 0;
  overflow: hidden;
}


.secondary-button {
  background: var(--brand-soft);
  color: var(--brand);
}

.status-message {
  border-radius: 13px;
  display: none;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 13px;
  padding: 10px 12px;
}

.status-message.visible { display: block; }
.status-message.error { background: #FEF3F2; color: var(--danger); }
.status-message.info { background: var(--brand-soft); color: var(--brand-blue); }
.status-message.success { background: #ECFDF3; color: var(--success); }

.account-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.account-row {
  background: #FBFCFE;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 14px 15px;
}

.row-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.row-value {
  color: var(--brand);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.account-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 18px;
}

.account-shell.auth-card {
  max-width: 400px;
  padding: 20px;
  width: min(100%, 400px);
}

.account-shell h1 {
  font-size: clamp(28px, 4.5vw, 29px);
  margin-top: 10px;
}

.account-shell .copy {
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 7px;
}

.account-shell .account-grid {
  gap: 7px;
  margin-top: 14px;
}

.account-shell .account-row {
  border-radius: 13px;
  padding: 10px 12px;
}

.account-shell .row-label {
  font-size: 10.5px;
}

.account-shell .row-value {
  font-size: 13.5px;
  line-height: 1.26;
  margin-top: 3px;
}

.account-shell .account-actions {
  gap: 8px;
  margin-top: 14px;
}

.plus-checkout-panel {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
  border: 1px solid rgba(40, 92, 142, 0.16);
  border-radius: 18px;
  margin-top: 18px;
  padding: 18px;
}

.plus-checkout-panel h2 {
  color: var(--brand);
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.plus-checkout-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0 0;
}

.plus-plan-list {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}

.plus-plan-button {
  appearance: none;
  background: #FFFFFF;
  border: 1px solid rgba(11, 25, 44, 0.1);
  border-radius: 16px;
  color: var(--brand);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  min-height: 132px;
  padding: 16px;
  position: relative;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.plus-plan-button-featured {
  border-color: rgba(40, 92, 142, 0.26);
  box-shadow: 0 10px 24px rgba(11, 25, 44, 0.06);
}

.plus-plan-button:hover {
  border-color: rgba(40, 92, 142, 0.36);
  box-shadow: 0 8px 18px rgba(11, 25, 44, 0.08);
  transform: translateY(-1px);
}

.plus-plan-button:disabled,
.refresh-plan-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.plus-plan-name {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.plus-plan-button strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  margin-top: 8px;
}

.plus-plan-action {
  color: var(--brand-blue);
  display: block;
  font-size: 12px;
  font-weight: 850;
  margin-top: auto;
  padding-top: 16px;
}

.plus-plan-meta {
  align-self: flex-start;
  background: rgba(40, 92, 142, 0.08);
  border-radius: 999px;
  color: var(--brand-blue);
  display: block;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1;
  margin-bottom: 10px;
  padding: 6px 8px;
}

.plus-checkout-reassurance {
  margin-top: 13px;
}

.plus-checkout-terms {
  font-size: 11px;
  line-height: 1.45;
  margin-top: 6px;
}

.plus-checkout-terms a {
  color: var(--brand-blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.refresh-plan-button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--brand-blue);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  margin: 10px 0 0;
  min-height: 34px;
  padding: 0 2px;
  text-align: left;
  transition: color 160ms ease, opacity 160ms ease;
}

.refresh-plan-button:hover {
  color: var(--brand);
}

.refresh-plan-button:focus-visible {
  outline: 3px solid rgba(40, 92, 142, 0.22);
  outline-offset: 3px;
}

.checkout-status-message {
  border-radius: 12px;
  display: none;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 9px 0 0;
  padding: 9px 10px;
}

.checkout-status-message.visible { display: block; }
.checkout-status-message.error { background: #FEF3F2; color: var(--danger); }
.checkout-status-message.info { background: var(--brand-soft); color: var(--brand-blue); }
.checkout-status-message.success { background: #ECFDF3; color: var(--success); }

.auth-footer {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  text-align: center;
}

@media (max-width: 560px) {
  .auth-header { padding: 18px; }
  .auth-main { padding: 18px; }
  .auth-card { border-radius: 20px; padding: 24px; }
  h1 { font-size: 30px; }
  .account-actions { align-items: stretch; flex-direction: column; }
  .plus-plan-list { grid-template-columns: 1fr; }
  .plus-plan-button { min-height: 122px; }
  .secondary-button { width: 100%; }
}
