/* Sign-in / sign-up page */
.auth-page { min-height: 100vh; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

.auth-side {
  position: relative; overflow: hidden; background: var(--grad); color: var(--teal-700);
  padding: 32px 40px; display: flex; flex-direction: column;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 320px at 20% 0%, rgba(255,255,255,.55), transparent 70%),
              repeating-linear-gradient(120deg, rgba(255,255,255,.18) 0 2px, transparent 2px 26px);
}
.auth-side > * { position: relative; }
.auth-side .brand { color: inherit; text-decoration: none; }
.auth-side-body { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px 0; }
.auth-mascot { width: 220px; height: auto; filter: drop-shadow(0 12px 20px rgba(15, 74, 46, .16)); }
.auth-side h1 { font-size: 34px; line-height: 1.25; font-weight: 800; letter-spacing: -.8px; margin: 10px 0 4px; max-width: 460px; }
.auth-side .hero-feats { justify-content: center; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; padding: 26px 28px 28px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--yellow-100); margin-bottom: 18px; }
.auth-tabs button {
  border: 0; background: transparent; border-radius: 999px; padding: 9px 0; font: inherit; font-weight: 700;
  color: var(--teal-700); cursor: pointer;
}
.auth-tabs button.active { background: var(--teal-700); color: var(--yellow-400); box-shadow: 0 4px 12px rgba(15, 74, 46, .2); }
.auth-tabs button.hidden { display: none; }
.auth-tabs:has(button.hidden) { grid-template-columns: 1fr; }

.auth-form h2 { margin: 0 0 2px; font-size: 22px; }
.auth-form > .msg { margin: 0 0 14px; }
.auth-form label { display: block; margin-bottom: 12px; font-weight: 600; }
.auth-form label small { font-weight: 500; color: var(--muted); }
.auth-form input:not([type=checkbox]) { width: 100%; margin-top: 4px; }
.pw-field { position: relative; display: block; }
.pw-field input { padding-right: 56px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 2px;
  border: 0; background: transparent; color: var(--teal-600); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px 8px;
}
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -2px 0 8px; flex-wrap: wrap; }
.auth-form label.check { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; font-weight: 500; white-space: nowrap; }
.auth-form label.check input { width: auto; margin: 0; flex: none; accent-color: var(--teal-600); }
.linklike { border: 0; background: none; color: var(--teal-600); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.linklike:hover { text-decoration: underline; }
.auth-note { font-size: 13px; background: var(--yellow-100); border-radius: 10px; padding: 8px 12px; margin: 0 0 8px; }
.auth-error { color: var(--err); font-size: 13px; font-weight: 600; min-height: 18px; margin: 4px 0 8px; }
.auth-submit { width: 100%; padding: 12px; font-size: 15px; }
.auth-submit:disabled { opacity: .7; cursor: progress; }
.auth-closed { margin: 0; text-align: center; }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 18px 20px 22px; }
  .auth-side-body { flex-direction: row; text-align: left; gap: 14px; padding: 14px 0 0; }
  .auth-mascot { width: 96px; }
  .auth-side h1 { font-size: 22px; margin: 0; }
  .auth-side .hero-feats { display: none; }
  .auth-main { align-items: flex-start; padding: 20px 14px 32px; }
  .auth-card { padding: 20px 18px 22px; }
}
/* the app's mobile top-bar ordering must not move the logo on this page */
.auth-side .brand { order: 0; }
