/* Gasta2 account screens (django-allauth). Standalone — loaded only by the
   auth shell at templates/allauth/layouts/base.html and account/logout.html. */

:root {
  --auth-ink: #123f32;
  --auth-muted: #5a6b62;
  --auth-paper: #f7f6f0;
  --auth-card: #ffffff;
  --auth-line: #dfe3d8;
  --auth-accent: #123f32;
  --auth-accent-strong: #1d5a45;
  --auth-lime: #dcf775;
  color-scheme: light;
}

* { box-sizing: border-box; }

/* allauth parks the signup honeypot at right:-99999px, which widens the page
   by 100k px. Keep it in the form for bots, but visually hidden in place. */
.auth-card input[name="company_website"] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

body.auth-shell {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--auth-ink);
  background: var(--auth-paper);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}

.auth-header {
  display: flex;
  width: min(100% - 2rem, 72rem);
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--auth-line);
}

.auth-monogram,
.auth-back {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.auth-monogram img { display: block; }

.auth-back {
  color: var(--auth-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.auth-back:hover { color: var(--auth-ink); }

.auth-stage {
  display: grid;
  min-height: calc(100vh - 4.5rem);
  padding: clamp(2rem, 7vw, 5rem) 1rem;
  place-items: start center;
}

.auth-card {
  width: min(100%, 30rem);
  padding: clamp(1.5rem, 5vw, 2.6rem);
  background: var(--auth-card);
  border: 1px solid var(--auth-line);
  border-radius: 1.4rem;
  box-shadow: 0 18px 50px -24px rgba(18, 63, 50, 0.3);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
  color: var(--auth-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  color: var(--auth-ink);
  background: var(--auth-lime);
  border-radius: 50%;
  place-items: center;
  font-size: 0.7rem;
  letter-spacing: -0.02em;
}

.auth-card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.auth-card h2 {
  margin: 1.7rem 0 0.7rem;
  color: var(--auth-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-card p,
.auth-card li {
  color: var(--auth-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.auth-lead { margin: 0 0 1.6rem; }
.auth-card form { margin-top: 1.4rem; }
.auth-card .auth-divider + form { margin-top: 0.9rem; }
.auth-card form p { margin: 0 0 1rem; }

.auth-card label {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--auth-ink);
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-card input:not([type="checkbox"]):not([type="radio"]),
.auth-card select,
.auth-card textarea {
  width: 100%;
  padding: 0.82rem 0.9rem;
  color: var(--auth-ink);
  background: #fff;
  border: 1px solid var(--auth-line);
  border-radius: 0.65rem;
  font: inherit;
  outline: none;
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(18, 63, 50, 0.14);
}

.auth-card button,
.auth-card a[role="button"] {
  display: flex;
  width: 100%;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--auth-accent);
  border: 1px solid var(--auth-accent);
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.auth-card button:hover,
.auth-card button:focus-visible,
.auth-card a[role="button"]:hover,
.auth-card a[role="button"]:focus-visible {
  background: var(--auth-accent-strong);
  border-color: var(--auth-accent-strong);
}

.auth-card a { color: var(--auth-accent); font-weight: 700; }
.auth-card hr { margin: 1.7rem 0; border: 0; border-top: 1px solid var(--auth-line); }
.auth-card ul { padding-left: 1.2rem; }
.auth-card .errorlist { margin: 0.35rem 0; padding-left: 1.1rem; color: #b0342b; }
.auth-card .errorlist li { color: #b0342b; }

/* Providers lead the entrance screens: Google is the fastest way in, so its
   button sits above the email form and carries the prominent treatment. */
.auth-provider-list {
  margin: 0;
  padding: 0 !important;
  list-style: none;
}

.auth-provider-item { list-style: none; }
.auth-provider-item + .auth-provider-item { margin-top: 0.6rem; }
.auth-card .auth-provider-item form { margin: 0; }

.auth-card .auth-provider-button {
  position: relative;
  min-height: 3.1rem;
  gap: 0.5rem;
  color: var(--auth-ink);
  background: #fff;
  border-color: var(--auth-line);
  font-size: 0.92rem;
  box-shadow: 0 0.35rem 1.1rem rgba(21, 60, 50, 0.1);
}

.auth-card .auth-provider-button:hover,
.auth-card .auth-provider-button:focus-visible {
  color: var(--auth-ink);
  background: #fff;
  border-color: var(--auth-ink);
  box-shadow: 0 0.5rem 1.5rem rgba(21, 60, 50, 0.14);
}

.auth-provider-mark {
  position: absolute;
  left: 1rem;
  width: 1.25rem;
  height: 1.25rem;
}

.auth-provider-initial {
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
}

/* The email path is the alternative, not the headline. */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0 0.2rem;
  color: var(--auth-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.auth-card .auth-button-secondary {
  color: var(--auth-accent);
  background: #fff;
  border-color: var(--auth-line);
}

.auth-card .auth-button-secondary:hover,
.auth-card .auth-button-secondary:focus-visible {
  color: var(--auth-accent-strong);
  background: #fff;
  border-color: var(--auth-accent);
}

.auth-messages {
  margin: 0 0 1.25rem;
  padding: 0.8rem 1rem;
  background: #e7f2ec;
  border: 1px solid #bcdccc;
  border-radius: 0.7rem;
}
.auth-messages li { color: #14503d; }

.auth-switch { margin: 1.4rem 0 0; text-align: center; }
.auth-security-note { margin: 1.8rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--auth-line); font-size: 0.72rem !important; }
.g-recaptcha { max-width: 100%; overflow: hidden; margin-top: 0.4rem; }

@media (max-width: 420px) {
  .auth-card { padding: 1.3rem; border-radius: 0.9rem; }
  .auth-back { font-size: 0.64rem; }
  .g-recaptcha { transform: scale(0.86); transform-origin: left center; width: 304px; }
}
