.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  background:
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.16), transparent 40%),
    linear-gradient(160deg, var(--color-bg-panel) 0%, var(--color-bg-panel-soft) 100%);
  color: var(--color-text-inverse);
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
}

.auth-panel__inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
}

.auth-brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-brand), #34d399);
  box-shadow: 0 12px 30px var(--color-brand-glow);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.auth-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-brand__tagline {
  font-size: 13px;
  color: var(--color-text-inverse-muted);
}

.auth-panel__title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.auth-panel__desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-inverse-muted);
  margin-bottom: 40px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.auth-feature__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.auth-feature__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.auth-feature__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.auth-feature__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-inverse-muted);
}

.auth-panel__footer {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--color-text-inverse-muted);
}

.auth-panel__footer strong {
  color: var(--color-text-inverse);
  font-weight: 600;
}

.auth-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card__header {
  margin-bottom: 32px;
}

.auth-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-card__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.auth-card__subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.auth-form__link {
  font-size: 14px;
  font-weight: 500;
}

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

.auth-card__footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.6;
}

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

  .auth-panel {
    padding: 32px 24px;
    min-height: auto;
  }

  .auth-brand {
    margin-bottom: 32px;
  }

  .auth-panel__title {
    font-size: 26px;
  }

  .auth-features {
    display: none;
  }

  .auth-form-section {
    padding: 32px 20px 48px;
  }
}

@media (max-width: 480px) {
  .auth-card__title {
    font-size: 24px;
  }

  .theme-toggle {
    top: 12px;
    right: 12px;
  }
}
