:root {
  --bg-deep: #07110d;
  --bg-panel: rgba(12, 22, 18, 0.92);
  --leaf: #6ecf8a;
  --leaf-soft: #3f8f62;
  --leaf-glow: rgba(110, 207, 138, 0.18);
  --mist: #c8ddd2;
  --text: #edf6f0;
  --text-muted: #8aa698;
  --border: rgba(110, 207, 138, 0.18);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(62, 143, 98, 0.22), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(110, 207, 138, 0.12), transparent 30%),
    linear-gradient(160deg, #04100b 0%, #0a1712 45%, #07110d 100%);
  color: var(--text);
  font-family: var(--font);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  overflow: hidden;
  color: var(--mist);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4, 16, 11, 0.92) 10%, rgba(4, 16, 11, 0.35) 55%, transparent),
    radial-gradient(circle at 50% 35%, var(--leaf-glow), transparent 55%);
}

.eucalyptus-tree {
  position: absolute;
  right: 8%;
  bottom: 18%;
  width: min(280px, 42vw);
  height: auto;
  color: var(--leaf);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

.hero-copy {
  position: relative;
  max-width: 34rem;
  z-index: 1;
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--leaf);
}

.hero-copy h1 {
  margin: 0;
  font: italic 600 clamp(2.4rem, 5vw, 4rem) / 1.05 var(--display);
  color: var(--text);
}

.hero-text {
  margin: 18px 0 0;
  max-width: 30rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 5vw, 56px);
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f7a52, #6ecf8a);
  color: #04100b;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-domain {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 18px;
}

.auth-tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: var(--text-muted);
  font: 600 0.92rem var(--font);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-tab.active {
  background: rgba(110, 207, 138, 0.16);
  color: var(--text);
}

.trial-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(110, 207, 138, 0.08);
  border: 1px solid var(--border);
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--danger-bg);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-size: 0.9rem;
}

.auth-success {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(110, 207, 138, 0.12);
  border: 1px solid var(--border);
  color: var(--mist);
  font-size: 0.9rem;
}

.form-intro {
  margin: 0 0 4px;
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.55;
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--leaf);
  font: 600 0.86rem var(--font);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.text-link:hover {
  text-decoration: underline;
}

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

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: 500 0.95rem var(--font);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form input:focus {
  border-color: rgba(110, 207, 138, 0.55);
  box-shadow: 0 0 0 3px rgba(110, 207, 138, 0.12);
}

.primary-btn,
.subscribe-btn,
.ghost-btn {
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font: 700 0.95rem var(--font);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.primary-btn,
.subscribe-btn {
  background: linear-gradient(135deg, #3f8f62, #6ecf8a);
  color: #04100b;
}

.primary-btn:hover,
.subscribe-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-radius: 12px;
  padding: 12px 16px;
  font: 600 0.92rem var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.google-btn {
  background: #f8faf9;
  color: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.google-btn:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.google-btn::before {
  content: "G";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.ghost-btn {
  margin-top: 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.login-footnote {
  margin: 18px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

.subscription-body {
  display: grid;
  place-items: center;
  padding: 24px;
}

.subscription-card {
  width: min(480px, 100%);
  padding: 32px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  text-align: center;
}

.subscription-card h1 {
  margin: 0 0 12px;
  font: 600 2rem var(--display);
}

.subscription-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.subscription-card .note {
  margin-top: 16px;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 42vh;
    padding: 32px 24px;
  }

  .eucalyptus-tree {
    right: 50%;
    transform: translateX(50%);
    bottom: 28%;
    opacity: 0.55;
  }

  .login-panel {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}
