.auth-page {
  min-height: 100vh;
  background: var(--off-white);
}

.auth-layout {
  min-height: 100vh;
  width: min(1410px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}

.auth-brand-panel {
  background: linear-gradient(135deg, #138b57 0%, #0e8a85 52%, #278bc6 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.13), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08), transparent 28%);
}

.auth-brand-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 90px 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.auth-brand-inner h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 24px 0 22px;
  max-width: 680px;
}

.auth-brand-inner p {
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 680px;
}

.auth-plan-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 650px;
}

.auth-plan-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.auth-plan-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.auth-plan-card p {
  font-size: 1rem;
  max-width: none;
}

.auth-form-panel {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-form-wrap {
  width: min(620px, calc(100% - 52px));
  padding: 30px 0;
}

.auth-back-link {
  display: inline-block;
  font-family: var(--font-heading);
  color: var(--green);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

.auth-tab {
  min-height: 62px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  background: transparent;
  color: #000;
}

.auth-tab.active {
  background: #050505;
  color: #fff;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.auth-panel h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.auth-panel > p {
  color: var(--text-soft);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

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

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

#otpForm {
  display: grid;
  gap: 18px;
}

@media (max-width: 980px) {
  .auth-layout {
    width: 100%;
  }

  .auth-brand-inner {
    padding: 60px 28px;
  }

  .auth-form-wrap {
    width: min(680px, calc(100% - 32px));
    padding: 46px 0 60px;
  }
}

@media (max-width: 640px) {
  .auth-plan-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}
