.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--bg-canvas);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.auth-brand {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
}

.auth-title {
  font-size: 22px;
}

.auth-subtitle {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.auth-form .btn-primary {
  justify-content: center;
}

.auth-errors,
.auth-success {
  margin: 0;
  padding: var(--space-3);
  border-radius: 8px;
  font-size: 13.5px;
  list-style: none;
}

.auth-errors {
  background: #f5e4de;
  color: #7a3420;
}

.auth-success {
  background: #e7ecdd;
  color: var(--accent);
}

.auth-field-error {
  color: #a64a2a;
  font-size: 12.5px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13.5px;
  color: var(--ink-muted);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-5);
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.btn-google:hover {
  background: var(--bg-canvas);
}

.auth-footer {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ---------- Split layout (Login / Register) ---------- */

.auth-split {
  display: flex;
  min-height: 100vh;
  background: var(--bg-canvas);
}

.auth-hero {
  position: sticky;
  top: 0;
  flex: 1 1 56%;
  max-width: 640px;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  align-items: center;
  padding: var(--space-10) clamp(var(--space-8), 6vw, 72px);
  color: var(--accent-contrast);
  background:
    radial-gradient(circle at 1px 1px, rgba(247, 243, 231, 0.16) 1px, transparent 1.6px) 0 0 / 24px 24px,
    radial-gradient(640px circle at 85% 10%, rgba(47, 94, 104, 0.35), transparent 60%),
    radial-gradient(520px circle at 6% 94%, rgba(156, 78, 42, 0.3), transparent 60%),
    linear-gradient(165deg, #3c4a27 0%, #263016 100%);
}

.auth-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.auth-hero-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.2px;
}

.auth-hero-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(13, 16, 8, 0.35);
}

.auth-hero-copy h2 {
  margin: 0 0 var(--space-3);
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.25;
}

.auth-hero-copy p {
  margin: 0;
  max-width: 44ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(247, 243, 231, 0.78);
}

.auth-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid rgba(247, 243, 231, 0.18);
  border-radius: 999px;
  background: rgba(247, 243, 231, 0.08);
  font-size: 13px;
  font-weight: 500;
}

.auth-hero-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--dot-color);
  filter: brightness(1.7) saturate(1.2);
}

.auth-hero-tag-notes { --dot-color: var(--tag-notes); }
.auth-hero-tag-video { --dot-color: var(--tag-video); }
.auth-hero-tag-task { --dot-color: var(--tag-task); }
.auth-hero-tag-doc { --dot-color: var(--tag-doc); }

.auth-panel {
  flex: 1 1 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
  background: var(--surface-card);
  border-left: 1px solid var(--line);
}

.auth-panel-inner {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  animation: auth-panel-in 0.5s ease both;
}

.auth-panel .auth-title {
  font-size: 30px;
}

.auth-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.auth-row a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.auth-row a:hover {
  text-decoration: underline;
}

.btn-google svg {
  flex-shrink: 0;
}

@keyframes auth-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .auth-split {
    flex-direction: column;
    min-height: 0;
  }

  .auth-hero {
    position: static;
    height: auto;
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    padding: var(--space-8) var(--space-6);
  }

  .auth-hero-copy p,
  .auth-hero-tags {
    display: none;
  }

  .auth-hero-copy h2 {
    margin: 0;
    font-size: 21px;
  }

  .auth-panel {
    flex: 0 0 auto;
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--line);
    padding: var(--space-8) var(--space-5) var(--space-10);
  }
}

@media (max-width: 480px) {
  .auth-hero {
    padding: var(--space-6) var(--space-5);
  }

  .auth-hero-brand {
    font-size: 17px;
  }

  .auth-hero-logo {
    width: 40px;
    height: 40px;
  }

  .auth-panel {
    padding: var(--space-6) var(--space-4) var(--space-8);
  }
}
