/* ============================================================
   Auth (login / signup) — minimal, professional split layout.
   Poppins headings + Inter body. Warm coral brand panel bridges
   the home page; the form side stays clean and focused.
   ============================================================ */
:root {
  --a-canvas: oklch(0.985 0.010 70);
  --a-surface: oklch(0.999 0.003 70);
  --a-ink: oklch(0.26 0.02 45);
  --a-muted: oklch(0.52 0.02 50);
  --a-border: oklch(0.90 0.012 65);
  --a-coral: oklch(0.685 0.17 36);
  --a-coral-deep: oklch(0.565 0.16 34);
  --a-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
body { background: var(--a-canvas); }

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

/* --- Brand panel --- */
.auth__brand {
  position: relative; overflow: hidden; color: oklch(0.99 0.02 70);
  padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(80% 70% at 20% 10%, oklch(0.74 0.16 50), var(--a-coral) 70%);
}
.auth__brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(circle, oklch(0.99 0.02 70 / 0.45) 2px, transparent 2.5px),
    radial-gradient(circle, oklch(0.86 0.13 80 / 0.6) 2px, transparent 2.5px);
  background-size: 88px 88px, 120px 120px; background-position: 0 0, 44px 52px;
}
.auth__brand > * { position: relative; z-index: 1; }
.auth__logo { display: inline-flex; align-items: center; gap: 11px; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.5rem; color: #fff; }
.auth__logo .mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: oklch(0.99 0.02 70 / 0.16); backdrop-filter: blur(4px); font-size: 1.2rem; }
.auth__pitch h2 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; color: #fff; max-width: 16ch; }
.auth__points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 13px; }
.auth__points li { display: flex; align-items: center; gap: 11px; font-size: 1rem; color: oklch(0.99 0.02 70 / 0.92); }
.auth__points .material-icons { font-size: 1.2em; opacity: 0.95; }
.auth__foot { font-size: 0.85rem; color: oklch(0.99 0.02 70 / 0.8); }

/* --- Form panel --- */
.auth__panel { display: grid; place-items: center; padding: 40px 28px; }
.auth__form { width: 100%; max-width: 384px; }
.auth__back { display: inline-flex; align-items: center; gap: 5px; font-size: 0.88rem; font-weight: 500; color: var(--a-muted); margin-bottom: 32px; }
.auth__back:hover { color: var(--a-coral-deep); }
.auth__form h1 { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.9rem; letter-spacing: -0.02em; color: var(--a-ink); }
.auth__sub { color: var(--a-muted); margin: 6px 0 28px; font-size: 0.98rem; }

.auth__field { margin-bottom: 18px; }
.auth__field label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--a-ink); margin-bottom: 7px; }
.auth__field input {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--a-ink);
  background: var(--a-surface); border: 1.5px solid var(--a-border); border-radius: 12px;
  padding: 13px 15px; transition: border-color .15s var(--a-ease), box-shadow .15s var(--a-ease);
}
.auth__field input::placeholder { color: var(--a-muted); opacity: 0.7; }
.auth__field input:focus { outline: none; border-color: var(--a-coral); box-shadow: 0 0 0 4px oklch(0.685 0.17 36 / 0.14); }
.auth__field .helptext { color: var(--a-muted); font-size: 0.8rem; margin-top: 6px; }
.auth__field .errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--a-coral-deep); font-size: 0.84rem; }

.auth__btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 20px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--a-coral); color: #fff; box-shadow: 0 6px 18px oklch(0.685 0.17 36 / 0.3);
  transition: background .2s var(--a-ease), transform .15s var(--a-ease), box-shadow .2s var(--a-ease);
  margin-top: 4px;
}
.auth__btn:hover { background: var(--a-coral-deep); transform: translateY(-2px); box-shadow: 0 10px 26px oklch(0.685 0.17 36 / 0.36); }
.auth__btn .material-icons { font-size: 1.2em; }

.auth__alt { margin-top: 24px; text-align: center; font-size: 0.92rem; color: var(--a-muted); }
.auth__alt a { color: var(--a-coral-deep); font-weight: 600; }
.auth__error {
  background: oklch(0.96 0.04 34); color: var(--a-coral-deep); border-radius: 12px;
  padding: 12px 14px; font-size: 0.9rem; margin-bottom: 20px; display: flex; align-items: center; gap: 9px;
}
.auth__error .material-icons { font-size: 1.15em; }

@media (max-width: 860px) {
  /* Block flow, not a stretched grid: compact brand band + centered form. */
  .auth { display: block; min-height: 100vh; }
  .auth__brand {
    flex-direction: row; align-items: center; justify-content: flex-start;
    gap: 12px; padding: 15px 22px; min-height: auto;
  }
  .auth__pitch, .auth__points, .auth__foot { display: none; }
  .auth__logo { font-size: 1.3rem; }
  .auth__logo .mark { width: 34px; height: 34px; font-size: 1.05rem; }
  .auth__panel { display: block; padding: 40px 22px 64px; }
  .auth__form { max-width: 420px; margin-inline: auto; }
  .auth__back { margin-bottom: 22px; }
}
@media (max-width: 400px) {
  .auth__brand { padding: 13px 18px; }
  .auth__panel { padding: 32px 18px 56px; }
  .auth__form h1 { font-size: 1.7rem; }
}
