/* AAH v2 — auth pages + nav-auth + gated tiles */

/* ---------- Nav auth links ---------- */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-auth-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-auth-link:hover { color: var(--blue); }
.nav-auth-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 500;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 980px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-auth-pill:hover { background: var(--blue); color: #fff; }
.nav-auth-account {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-auth-account:hover { color: var(--blue); }

@media (max-width: 720px) {
  .nav-auth-link { display: none; }   /* keep just the pill / account at small sizes */
}

/* ---------- Auth shell pages ---------- */
.auth-shell {
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 22px 100px;
  background: var(--panel, #f5f5f7);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  padding: 44px 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.auth-card-wide { max-width: 720px; }
.auth-card .eyebrow { color: #86868b; }
.auth-card h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.1; margin: 6px 0 14px; }
.auth-card .kicker { color: #515154; font-size: 16px; line-height: 1.5; margin-bottom: 24px; }
.auth-fineprint {
  margin-top: 18px;
  font-size: 13px;
  color: #86868b;
}
.auth-fineprint a { color: var(--blue); text-decoration: none; }
.auth-fineprint a:hover { text-decoration: underline; }
.form-optional { color: #86868b; font-weight: 400; }
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  font: inherit;
  cursor: pointer;
}
.link-btn[disabled] { color: #86868b; cursor: default; }

/* Radios */
.auth-radios {
  border: 0;
  padding: 0;
  margin: 14px 0 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.auth-radios legend {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 6px;
  padding: 0;
}
.auth-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}
.auth-radio:hover { border-color: var(--blue); }
.auth-radio input { accent-color: var(--blue); margin: 0; }
@media (min-width: 520px) {
  .auth-radios { grid-template-columns: 1fr 1fr; }
}

/* OTP cells */
.otp-row {
  display: flex;
  gap: 6px;
  margin: 8px 0 18px;
}
.otp-cell {
  flex: 1;
  min-width: 0;
  max-width: 44px;
  width: 44px;
  height: 44px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 0;
}
.otp-cell:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

/* Account */
.unlocked-list { list-style: none; padding: 0; margin: 12px 0 0; }
.unlocked-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 15px;
}
.unlocked-list li:last-child { border: 0; }
.unlocked-list a { color: var(--blue); text-decoration: none; }
.unlocked-list .muted { color: #86868b; font-size: 13px; }
.muted { color: #86868b; }

/* ---------- Floorplan strip on project pages ---------- */
.floorplan-strip {
  padding: 60px 22px 20px;
  background: #fff;
}
.floorplan-strip .eyebrow { color: #86868b; }
.floorplan-strip h2 { font-size: clamp(22px, 3vw, 30px); }
.fp-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.fp-tile {
  position: relative;
  background: var(--panel, #f5f5f7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
}
.fp-tile h4 { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
.fp-tile p { color: #515154; font-size: 14px; line-height: 1.45; flex: 1; }
.fp-tile .btn { align-self: flex-start; }
.fp-lock {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.9);
  color: #86868b;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* When verified, dim the lock icons sitewide */
body[data-aah-auth="verified"] .fp-lock { display: none; }
