/* Auth screens — login / sign-up shared styling
 *
 * The login page used to be a standalone dark card floating on a black
 * background, with no nav and no footer. It read as a detached utility screen
 * rather than part of the site. It's now a two-column layout that sits inside
 * the normal page furniture: form on the left, photograph on the right.
 */

body.auth-page {
  background: var(--cream);
  min-height: 100vh;
}

/* ------------------------------- layout ------------------------------- */

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding: 0;
  align-items: stretch;
}
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; min-height: 0; }
}

.auth-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9rem 2rem 5rem;   /* top clears the fixed nav */
}
@media (max-width: 900px) {
  .auth-pane { padding: 8rem 1.5rem 3rem; }
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  text-decoration: none;
  line-height: 0;
}
.auth-brand .brand-logo { height: 44px; width: auto; display: block; }
/* The nav already carries the lockup on wide screens, so showing it twice is
   redundant — but on mobile the split collapses and it anchors the page. */
@media (min-width: 901px) { .auth-brand { display: none; } }

/* ----------------------------- the visual ----------------------------- */

.auth-visual {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10, 10, 10, 0.75) 0%,
    rgba(10, 10, 10, 0.15) 45%,
    rgba(10, 10, 10, 0) 70%);
  pointer-events: none;
}
.auth-visual-quote {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 3rem;
}
.auth-visual-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  line-height: 1.35;
  color: var(--cream);
  max-width: 26ch;
}
@media (max-width: 900px) {
  .auth-visual { min-height: 320px; }
  .auth-visual-quote { padding: 2rem; }
}

/* ------------------------------ the card ------------------------------ */

/* On a light background the card no longer needs the glass treatment — a
   plain white panel with a hairline border reads cleaner and matches the
   cards used elsewhere on the site. */
.auth-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  box-shadow: var(--shadow);
}
@media (max-width: 560px) { .auth-card { padding: 2rem 1.5rem; } }

.auth-card h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.auth-card h1 em { color: var(--gold-deep); font-style: italic; }
.auth-card .lede {
  color: var(--grey);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.auth-card .field label { color: var(--slate); }
.auth-card .field input {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--grey-line);
}
.auth-card .field input::placeholder { color: var(--grey-soft); }
.auth-card .field input:focus {
  background: var(--white);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  margin: 1.4rem 0;
  color: var(--grey);
  gap: 1rem;
  flex-wrap: wrap;
}
.auth-row a { color: var(--gold-deep); }
.auth-row a:hover { color: var(--ink); }
.auth-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.auth-row input[type="checkbox"] { accent-color: var(--gold); }

.auth-submit { width: 100%; justify-content: center; }

.auth-error {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(194, 96, 63, 0.1);
  border: 1px solid rgba(194, 96, 63, 0.4);
  border-radius: var(--radius);
  color: #A84A2C;
  font-size: 0.9rem;
}
.auth-error.visible { display: block; }

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--grey);
}
.auth-footer a { color: var(--gold-deep); font-weight: 500; }
.auth-footer a:hover { color: var(--ink); }

/* The footer follows a dark photo panel on desktop, so the default cream gap
   above it would show as a stray band. */
.auth-split + .footer { margin-top: 0; }

/* Reset-password flow */
.field-hint {
  font-size: 0.78rem;
  color: var(--grey);
  margin-top: 0.35rem;
  line-height: 1.5;
}
.auth-card .lead-success {
  margin-top: 0;
  background: #EAF3EC;
  border: 1px solid #BBD9C2;
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  color: #2F5A3A;
  font-size: 0.92rem;
  line-height: 1.6;
}
.auth-card .lead-success[hidden] { display: none; }
.auth-card .lead-success strong { display: block; margin-bottom: 0.3rem; }
.auth-card .lead-success p { margin: 0; }
