/* Guru Estates OS: the sign-in screens, built on the public website's own site.css so they
   look and behave like the website (Ross, 28 Nov 2026: "make the sign in portal design uniform
   to the website"). This file only adds what the website has no equivalent for: messages,
   errors, the two-step choice, the terms box and the QR code. Everything else is site.css:
   header (.hdr), green band (.band.dark), copper-dash label (.label), floating-label fields
   (.field), consent lines (.consent), pills (.pill) and footer (.ftr). */

.auth-band { min-height: calc(100vh - 60px); min-height: calc(100dvh - 60px); }
.auth-body { max-width: 560px; }

/* Type inside the band */
.auth-body .sub { margin-bottom: 20px; }
.auth-body .auth-p, .auth-body > p { margin: 0 0 20px; color: var(--on-green-muted); text-wrap: pretty; }
.auth-body .auth-h2 { margin: 36px 0 12px; font: 500 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.auth-body a:not(.pill) { color: #fff; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.auth-body a:not(.pill):hover { text-decoration-thickness: 2px; }
.auth-body hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .18); margin: 36px 0; }
.auth-body ul:not(.errorlist):not(.auth-messages):not(.choice) { padding-left: 20px; }
.auth-body section { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .18); }
.auth-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.auth-body td, .auth-body th { text-align: left; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }

/* The website's form, in one column on the sign-in screens */
.auth-form { grid-template-columns: 1fr; }
.auth-form .form__end { justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
.field-help { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--on-green-muted); }
/* A help line that is only a link ("Forgot your password?") gets a full tap area. */
.field-help > a:only-child, .auth-body p > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
.consent .consent__help { display: block; margin-top: 4px; }
.auth-body .consent { color: #fff; font-size: 16px; line-height: 22px; }
.auth-body .consent .consent__help { color: var(--on-green-muted); font-size: 14px; line-height: 20px; }
/* Read-only fields (the authenticator secret) stay legible. */
.dark .field input[disabled], .dark .field input[readonly] { color: #fff; -webkit-text-fill-color: #fff; opacity: 1; }

/* Buttons: the website's pill. The main action keeps the website's own pill on the green band
   (the gold of "Ask for a valuation"); other actions are outlined, so there is one main action. */
.auth-body .pill:not(.pill--primary) { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.auth-body .pill { min-width: 160px; }
.auth-body .pill:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* allauth's group of extra sign-in options (the passkey button) */
.auth-body > div:has(> .pill) { display: flex; flex-wrap: wrap; gap: 12px; }

/* Errors and messages, readable on green */
.auth-body .errorlist {
  list-style: none; margin: 8px 0 0; padding: 10px 14px; border-radius: 10px;
  background: #fff; color: #8C1D18; font-size: 14px; line-height: 20px;
}
.auth-messages { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.auth-messages li { padding: 12px 16px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 15px; line-height: 21px; }
.auth-messages li.error { background: #fff; color: #8C1D18; }

/* The two-step choice: two cards in the website's line style */
.choice { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.choice a {
  display: grid; gap: 6px; padding: 20px 22px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .24); color: #fff; text-decoration: none;
  transition: background-color .4s var(--ease-vi), border-color .4s var(--ease-vi);
}
.choice form { margin: 0; }
.choice .choice__btn {
  display: grid; gap: 6px; width: 100%; padding: 20px 22px; border-radius: 16px; text-align: left; font: inherit;
  border: 1px solid rgba(255, 255, 255, .24); color: #fff; background: transparent; cursor: pointer;
  transition: background-color .4s var(--ease-vi), border-color .4s var(--ease-vi);
}
.choice a:hover, .choice .choice__btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.choice a:focus-visible, .choice .choice__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.choice strong { font: 500 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.choice span { color: var(--on-green-muted); }
.choice .tag { justify-self: start; font-size: 13px; line-height: 18px; padding: 2px 10px; border-radius: 999px; background: var(--gold-on-green); color: var(--ink); }
.after-choice { margin-top: 24px; font-size: 14px; line-height: 20px; color: var(--on-green-muted); }

/* Terms: read at length, so on solid white, never on the green */
.terms-text {
  max-height: 18rem; overflow: auto; white-space: pre-wrap; margin: 0 0 20px; padding: 16px 18px;
  background: #fff; color: var(--ink); border-radius: 12px; font-size: 15px; line-height: 22px;
}

/* A QR code needs dark squares on a light ground to scan */
.auth-body img[src^="data:image"] { display: block; width: 200px; height: auto; padding: 12px; background: #fff; border-radius: 12px; margin: 8px 0 20px; }

/* Codes (recovery codes, the authenticator secret) */
.auth-body code, .auth-body pre { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.auth-ftr { grid-template-columns: auto 1fr; align-items: center; }
.auth-ftr p { margin: 0; max-width: 520px; }
.ftr__base { align-items: center; }

@media (max-width: 900px) {
  .auth-band { min-height: 0; }
  .auth-ftr { grid-template-columns: 1fr; }
}

/* Below 1024px site.css hides the header navs and opens them from the burger menu. The
   sign-in pages have no burger, so the Account link (Sign in / Sign out) stays visible here
   (audit 2026-11-28). The main nav stays hidden, as on the website. */
@media (max-width: 1023px) {
  .auth .hdr__end .nav { display: flex; }
}
