/* ==========================================================
   bocco account pages — login, register, forgot password
   Split screen: full-bleed brand visual left, form right.
   ========================================================== */

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--bg); }

.auth-visual {
  position: relative;
  display: none;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--maroon);
  padding: 48px;
}
.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.9;
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(26,10,13,0) 45%, rgba(26,10,13,0.9) 100%);
}
.auth-wordmark { position: absolute; top: 28px; left: 32px; font-family: var(--font-head); font-weight: 800; font-size: 40px; letter-spacing: -0.045em; color: #FFF3EF; }
.auth-visual h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; max-width: 14ch; margin-top: auto; }
.auth-chips { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.auth-chips span { padding: 8px 14px; border-radius: 999px; background: rgba(255,243,239,0.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 600; font-size: 0.82rem; color: #fff; }
.auth-quote {
  margin-top: 28px;
  max-width: 380px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
}
.auth-quote p { color: #fff; margin: 0 0 6px; font-size: 1rem; }
.auth-quote small { color: rgba(255, 255, 255, 0.85); }

.auth-panel { display: grid; align-content: start; padding: 20px 20px 48px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 36px; }
.auth-top .logo-h { font-size: 28px; }
.auth-top a.back { font-weight: 600; color: var(--accent-text); font-size: 0.92rem; }

.auth-card { width: min(440px, 100%); justify-self: center; display: grid; gap: 6px; }
.auth-card h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); color: var(--ink); }
.auth-card > p.lead { color: var(--ink-2); margin: 0 0 18px; font-size: 1.02rem; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field .err { min-height: 1.1em; font-size: 0.85rem; color: #B42318; font-weight: 500; }
.input-wrap { position: relative; }
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #9A8A8E; }
.input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.input[aria-invalid="true"] { border-color: #B42318; box-shadow: 0 0 0 4px #FDE7E5; }
.input-wrap .input { padding-right: 84px; }
.input-wrap .reveal {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.meter span { height: 6px; border-radius: 999px; background: var(--line); transition: background 0.3s; }
.meter[data-level="1"] span:nth-child(-n+1) { background: #E5484D; }
.meter[data-level="2"] span:nth-child(-n+2) { background: var(--gold); }
.meter[data-level="3"] span:nth-child(-n+3) { background: #8BC34A; }
.meter[data-level="4"] span:nth-child(-n+4) { background: var(--green); }
.meter-label { font-size: 0.82rem; color: var(--muted); }

.row-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.92rem; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-text); flex: 0 0 auto; }
.row-line a { font-weight: 600; color: var(--accent-text); }

.submit { min-height: 54px; font-size: 1rem; width: 100%; }
.alt { text-align: center; margin: 14px 0 0; color: var(--ink-2); }
.alt a { font-weight: 700; color: var(--accent-text); }

/* Register: stepper */
.auth-steps { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.auth-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.auth-steps li .n { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: var(--line); color: var(--ink-2); font-size: 0.85rem; flex: 0 0 auto; }
.auth-steps li[aria-current="step"] { color: var(--accent-text); border-color: var(--accent-text); }
.auth-steps li[aria-current="step"] .n { background: var(--coral); color: var(--on-coral); }
.auth-steps li.done .n { background: var(--green); color: #fff; }

.step-pane { display: grid; gap: 16px; }
.step-pane.hidden { display: none; }
.two-up { display: grid; gap: 14px; grid-template-columns: 1fr; }

.success {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  background: var(--green-soft);
  border: 1px solid #BFE3CF;
}
.success .tick { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 1.4rem; }
.success h2 { font-size: 1.3rem; color: var(--ink); }
.success p { color: var(--ink-2); margin: 0; }

/* Mobile-only photo header for Register/Forgot — the split .auth-visual
   panel is desktop-only, so these two screens (the ones the spec shows
   a dedicated mobile treatment for) get their own full-bleed photo band
   instead of opening straight into a plain text header. */
.auth-mobile-banner { display: none; }
@media (max-width: 899px) {
  .auth-mobile-banner {
    display: block;
    position: relative;
    height: 210px;
    margin: -20px -20px 20px;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
  }
  .auth-mobile-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
  .auth-mobile-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,10,13,0.55) 0%, rgba(26,10,13,0) 40%, rgba(26,10,13,0.85) 100%); }
  .auth-mobile-banner-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; }
  .auth-mobile-banner-top .logo-h { color: #FFF3EF; font-size: 28px; }
  .back-pill { position: relative; z-index: 1; padding: 10px 14px; border-radius: 999px; background: rgba(26,10,13,0.7); color: #FFF3EF; font-weight: 600; font-size: 0.82rem; }
  .auth-mobile-banner h1 { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; margin: 0; color: #FFF3EF; font-size: clamp(1.7rem, 7vw, 2.1rem); letter-spacing: -0.035em; line-height: 1; }
  .auth-top, .auth-card-h1 { display: none; }
}

@media (min-width: 900px) {
  .auth-shell { grid-template-columns: 1.05fr 0.95fr; }
  .auth-visual { display: flex; flex-direction: column; min-height: 100vh; }
  .auth-panel { padding: 32px clamp(28px, 5vw, 72px) 56px; }
  .two-up { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .auth-top { margin-bottom: 24px; }
}
.success[hidden] { display: none; }
.field > label.check { font-weight: 400; color: var(--ink-2); }
