:root {
  --lp-bg: #f8f4ee;
  --lp-paper: rgba(255, 255, 255, 0.94);
  --lp-ink: #1c1814;
  --lp-muted: #766e64;
  --lp-earth: #6b4c3b;
  --lp-earth-dark: #3d2a1e;
  --lp-gold: #c9a84c;
  --lp-gold-light: #e7c86c;
  --lp-gold-pale: rgba(201, 168, 76, 0.14);
  --lp-line: rgba(107, 76, 59, 0.12);
  --lp-shadow: 0 24px 60px rgba(28, 24, 20, 0.10);
  --lp-shadow-soft: 0 14px 32px rgba(28, 24, 20, 0.08);
  --lp-success: #1f8d50;
  --lp-error: #b43333;
}

* {
  box-sizing: border-box;
}

body.login-page {
  margin: 0;
  min-height: 100vh;
  padding: 28px 16px;
  color: var(--lp-ink);
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(201, 168, 76, 0.10), transparent 55%),
    radial-gradient(700px 500px at 100% 18%, rgba(61, 42, 30, 0.09), transparent 58%),
    linear-gradient(180deg, #fcfaf6 0%, var(--lp-bg) 42%, #f5efe6 100%);
  display: grid;
  place-items: center;
}

.login-skip-link {
  position: absolute;
  left: 16px;
  top: -52px;
  z-index: 120;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--lp-earth-dark);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--lp-shadow-soft);
  transition: top .2s ease;
}

.login-skip-link:focus {
  top: 16px;
}

.login-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 460px);
  gap: 26px;
  align-items: stretch;
}

.login-hero,
.login-stage {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow);
}

.login-hero {
  padding: 42px;
  background:
    radial-gradient(circle at 80% 18%, rgba(201, 168, 76, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(255,255,255,0.96) 0%, rgba(249,243,227,0.92) 55%, rgba(243,236,227,0.94) 100%);
}

.login-hero::before {
  content: "SK";
  position: absolute;
  right: -12px;
  bottom: -34px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 220px;
  line-height: 1;
  color: rgba(201, 168, 76, 0.08);
  pointer-events: none;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--lp-gold-light), var(--lp-gold), #a8832c);
  color: var(--lp-earth-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(201, 168, 76, 0.28);
}

.login-brand__copy {
  display: grid;
  gap: 4px;
}

.login-brand__eyebrow,
.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-gold);
}

.login-brand__eyebrow::before,
.login-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(201, 168, 76, 0.7);
}

.login-brand__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-earth-dark);
}

.login-hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(44px, 6vw, 68px);
  line-height: 0.98;
  color: var(--lp-earth-dark);
}

.login-hero__title em {
  font-style: italic;
  color: var(--lp-gold);
}

.login-hero__lead {
  position: relative;
  z-index: 1;
  max-width: 52ch;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--lp-muted);
}

.login-hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.login-stat {
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(107, 76, 59, 0.08);
}

.login-stat strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 1;
  color: var(--lp-earth-dark);
}

.login-stat span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-muted);
}

.login-hero__benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.login-benefit {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(107, 76, 59, 0.08);
}

.login-benefit__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lp-gold-pale);
  color: var(--lp-earth-dark);
  font-size: 15px;
}

.login-benefit strong {
  display: block;
  font-size: 14px;
  color: var(--lp-earth-dark);
}

.login-benefit span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--lp-muted);
}

.login-hero__path {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.login-path-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(107, 76, 59, 0.08);
}

.login-path-card__step {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  width: fit-content;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--lp-gold-pale);
  color: var(--lp-earth);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-path-card strong {
  font-size: 14px;
  color: var(--lp-earth-dark);
}

.login-path-card span:last-child {
  font-size: 13px;
  line-height: 1.55;
  color: var(--lp-muted);
}

.login-stage {
  padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(249,243,227,0.88) 100%);
}

.login-stage__inner {
  position: relative;
  z-index: 1;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0 20px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(107, 76, 59, 0.08);
}

.login-tab {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--lp-muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.login-tab:hover {
  color: var(--lp-earth-dark);
}

.login-tab.is-active {
  background: linear-gradient(135deg, rgba(201,168,76,.18), rgba(171,116,38,.08));
  color: var(--lp-earth-dark);
  box-shadow: 0 10px 22px rgba(28, 24, 20, 0.06);
}

.login-stage__assist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.login-assist-card {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(107, 76, 59, 0.08);
  color: var(--lp-earth-dark);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.login-assist-card--button {
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.login-assist-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lp-shadow-soft);
  border-color: rgba(201, 168, 76, 0.22);
}

.login-assist-card strong {
  font-size: 14px;
}

.login-assist-card span {
  font-size: 12px;
  line-height: 1.55;
  color: var(--lp-muted);
}

.login-card,
.subscribe-card {
  border-radius: 26px;
  border: 1px solid rgba(107, 76, 59, 0.10);
  background: rgba(255,255,255,0.90);
  box-shadow: var(--lp-shadow-soft);
}

.login-card {
  padding: 26px;
}

.login-card__title,
.subscribe-card__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 1.02;
  color: var(--lp-earth-dark);
}

.login-card__sub,
.subscribe-card p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--lp-muted);
}

.login-form {
  margin-top: 18px;
}

.aula-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(107, 76, 59, 0.12);
  background: rgba(255,255,255,0.92);
  font: inherit;
  font-size: 15px;
  color: var(--lp-ink);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.aula-input:focus {
  outline: none;
  border-color: var(--lp-gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.14);
  transform: translateY(-1px);
}

.btn-send,
.btn-subscribe {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.btn-send:hover,
.btn-subscribe:hover {
  transform: translateY(-2px);
}

#send {
  margin-top: 14px;
  background: linear-gradient(145deg, #2fa861, #1f8d50);
  color: #fff;
  box-shadow: 0 14px 28px rgba(31, 141, 80, 0.24);
}

#auto-enter {
  margin-top: 10px;
  display: none;
  background: linear-gradient(145deg, #4b6cb7, #2f4b93);
  color: #fff;
  box-shadow: 0 14px 28px rgba(47, 75, 147, 0.20);
}

.btn-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#msg {
  min-height: 22px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(8px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}

#msg.visible {
  transform: translateY(0);
  opacity: 1;
}

.login-card__foot {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.login-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(249, 243, 227, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.14);
  font-size: 13px;
  line-height: 1.6;
  color: var(--lp-earth);
}

.subscribe-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.subscribe-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.18) 0%, transparent 70%);
  pointer-events: none;
}

.subscribe-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(61, 42, 30, 0.08);
  border: 1px solid rgba(61, 42, 30, 0.10);
  color: var(--lp-earth-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.subscribe-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 18px 0;
}

.subscribe-price .currency,
.subscribe-price .amount {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--lp-earth-dark);
}

.subscribe-price .currency {
  font-size: 24px;
  font-weight: 700;
}

.subscribe-price .amount {
  font-size: 56px;
  line-height: 0.92;
  font-weight: 700;
}

.subscribe-price .period {
  font-size: 13px;
  font-weight: 700;
  color: var(--lp-muted);
}

.subscribe-list {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 18px;
}

.subscribe-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-earth-dark);
}

.subscribe-list .chk {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lp-gold-pale);
  border: 1px solid rgba(201, 168, 76, 0.18);
  color: var(--lp-earth-dark);
  font-size: 11px;
  font-weight: 900;
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff8f0;
  background: linear-gradient(145deg, var(--lp-gold-light), #b88335, #8f6425);
  box-shadow: 0 16px 32px rgba(143, 100, 37, 0.22);
}

.login-stage__footer {
  margin-top: 18px;
  text-align: center;
}

.back-link {
  color: var(--lp-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--lp-earth-dark);
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,.30);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero__path,
  .login-stage__assist {
    grid-template-columns: 1fr;
  }

  .login-hero,
  .login-stage {
    border-radius: 28px;
  }
}

@media (max-width: 640px) {
  body.login-page {
    padding: 16px;
  }

  .login-hero,
  .login-stage {
    padding: 22px;
  }

  .login-hero__stats {
    grid-template-columns: 1fr;
  }

  .login-tabs {
    grid-template-columns: 1fr;
  }

  .login-card,
  .subscribe-card {
    padding: 20px;
  }

  .login-card__title,
  .subscribe-card__title {
    font-size: 30px;
  }

  .subscribe-price .amount {
    font-size: 48px;
  }
}