/* Split-screen auth layout (login / signup / forgot-reset password).
   Uses the same --accent tokens as app.css so it stays on-brand, but this
   page always renders in its own fixed light+dark-green palette regardless
   of the account's theme preference (there's no logged-in account yet). */

.auth-split {
  min-height: 100vh;
  display: flex;
}

.auth-hero {
  flex: 1 1 46%;
  max-width: 620px;
  position: relative;
  overflow: hidden;
  padding: 3rem 3.5rem;
  color: #eafff5;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(160deg, #06231a 0%, #0a3d2c 55%, #0f5a3f 100%);
  display: flex;
  flex-direction: column;
}

.auth-hero-decor {
  position: absolute;
  inset: auto -10% -25% auto;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.auth-hero-decor::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.auth-hero-brand {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #4ee3a4;
  margin-bottom: 2.5rem;
}

.auth-hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.auth-hero h1 .accent { color: #4ee3a4; }

.auth-hero-sub {
  color: rgba(234, 255, 245, 0.75);
  max-width: 30rem;
  margin-bottom: 2.5rem;
}

.auth-hero-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.auth-hero-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.auth-hero-feature-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #4ee3a4;
}

.auth-hero-features strong { display: block; margin-bottom: 0.15rem; }
.auth-hero-features span { color: rgba(234, 255, 245, 0.7); font-size: 0.92rem; }

.auth-panel {
  flex: 1 1 54%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--page);
}

.auth-panel-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.auth-panel-brand i { color: var(--accent); }

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.15);
}

.auth-card h1 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.auth-heading-icon {
  color: var(--accent);
  font-size: 1.1rem;
  vertical-align: middle;
}

.auth-card-sub {
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.auth-field { margin-bottom: 1rem; }

.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap i.auth-input-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--ink-muted);
  pointer-events: none;
}

.auth-input-wrap .form-control {
  padding-left: 2.4rem;
}

.auth-input-wrap .auth-toggle-visibility {
  position: absolute;
  right: 0.6rem;
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
  margin: 1.25rem 0;
}

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

@media (max-width: 900px) {
  .auth-hero { display: none; }
  .auth-panel { flex: 1 1 100%; }
}
