/* Auth layout (login, signup, password reset, onboarding): brand panel + form card.
   The Google button follows Google's sign-in branding (white fill, #747775 border, #1F1F1F text,
   official multicolour "G", unmodified). Author: Smarketer. */

body.layout-auth { background: var(--surface); }

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100dvh;
}
.auth__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5) clamp(var(--s-4), 5vw, var(--s-8));
  background: #f7f3fe;
  overflow: hidden;
  isolation: isolate;
}
.auth__aside::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  z-index: -1;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 34, 255, 0.12), transparent 65%);
}
.auth__aside .brand img { height: 40px; }
.auth__pitch { max-width: 460px; margin-top: auto; }
.auth__pitch-title { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.25; font-weight: var(--fw-medium); color: var(--ink); }
.auth__pitch-title em { font-style: normal; color: var(--brand); }
.auth__points { display: grid; gap: var(--s-1-5); margin-top: var(--s-3); list-style: none; padding: 0; color: var(--muted-strong); }
.auth__points li { display: flex; gap: 10px; align-items: flex-start; }
.auth__points .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--accent); color: var(--ink); stroke-width: 2.6; flex: none; }
.auth__art { margin-top: auto; margin-inline: -8% -16%; }
.auth__art img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 85%, transparent), linear-gradient(0deg, transparent, #000 15%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 85%, transparent), linear-gradient(0deg, transparent, #000 15%, #000 90%, transparent);
  mask-composite: intersect;
}

.auth__main { display: flex; flex-direction: column; padding: var(--s-3) var(--gutter); }
.auth__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-1) var(--s-2); min-height: 48px; }
.auth__top .brand { visibility: hidden; }
.auth__switch { margin-inline-start: auto; color: var(--muted-strong); font-size: var(--fs-sm); text-align: end; }
.auth-card { width: 100%; max-width: 420px; margin: auto; padding-block: var(--s-5); }
.auth-card__title { font-size: var(--fs-3xl); line-height: 1.25; font-weight: var(--fw-medium); color: var(--ink); }
.auth-card__sub { margin-top: var(--s-1); color: var(--muted-strong); }
.auth-card__body { display: grid; gap: var(--s-2-5); margin-top: var(--s-4); }
.auth-card__legal { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-xs); }
.auth__foot { color: var(--muted); font-size: var(--fs-xs); text-align: center; padding-top: var(--s-2); }

/* Google sign-in button */
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 14px;
  border: 1px solid #747775;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #1f1f1f;
  font-size: var(--fs-app);
  font-weight: var(--fw-medium);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.btn-google:hover { background: #f8f8f8; color: #1f1f1f; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 1px 1px rgba(60, 64, 67, 0.15); }
.btn-google:active { background: #f1f1f1; }
.btn-google__logo { width: 20px; height: 20px; flex: none; }
.btn-google:disabled, .btn-google[aria-disabled="true"] { border-color: rgba(31, 31, 31, 0.12); color: rgba(31, 31, 31, 0.38); background: rgba(255, 255, 255, 0.6); cursor: not-allowed; box-shadow: none; }
.btn-google:disabled .btn-google__logo, .btn-google[aria-disabled="true"] .btn-google__logo { opacity: 0.38; }
.auth-note { color: var(--muted); font-size: var(--fs-xs); text-align: center; }

.org-choice { display: grid; gap: var(--s-1-5); list-style: none; padding: 0; }
.org-choice__item {
  display: flex;
  align-items: center;
  gap: var(--s-1-5);
  width: 100%;
  min-height: 64px;
  padding: 10px var(--s-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--heading);
  text-align: start;
  text-decoration: none;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.org-choice__item:hover { border-color: var(--brand-300); background: var(--lavender); color: var(--heading); }
.org-choice__item .icon:last-child { margin-inline-start: auto; color: var(--muted); }

@media (max-width: 1023.98px) {
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .auth__top .brand { visibility: visible; }
  .auth-card { margin-top: var(--s-3); padding-block: var(--s-3); }
}
@media (max-width: 639.98px) { .auth-card__title { font-size: var(--fs-2xl); } }
