/* Shared auth / account — Lurking.Me: warm charcoal, crimson CTA, rose links (not wireframe / not “social card” blue) */
:root {
  --void: #08080a;
  --ink: #101014;
  --line: rgba(255, 255, 255, 0.07);
  --mute: #9ca3af;
  --paper: #f4f4f5;
  --red: #e11d48;
  --red-hot: #f43f5e;
  --magenta: #e879a9;
  --link: #fb7185;
  --link-hover: #fda4af;
  --card: #121215;
  --card-edge: rgba(255, 255, 255, 0.09);
  --input-fill: #0e0e12;
  --input-stroke: #2a2a32;
  --btn-radius: 0.5rem;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font);
  background: var(--void);
  color: var(--mute);
}
body.auth-body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  color-scheme: dark;
}
body.auth-body a { color: var(--link); }
body.auth-body a:hover { color: var(--link-hover); }
body.auth-body .brand em { color: var(--red-hot); }
.wrap { max-width: 26rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
h1 {
  font-family: var(--display);
  color: var(--paper);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
}
.sub { font-size: 0.9rem; margin: 0 0 1.5rem; line-height: 1.5; }
.brand { display: inline-block; font-family: var(--display); font-weight: 800; color: var(--paper); text-decoration: none; margin-bottom: 2rem; }
.brand em { font-style: normal; color: var(--red-hot); }
label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9a9aa3;
  margin: 0.9rem 0 0.35rem;
}
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  background: #050505;
  color: var(--paper);
  font-size: 0.95rem;
}
input:focus { outline: none; border-color: rgba(244, 63, 94, 0.45); }
.hint { font-size: 0.75rem; color: #6b6b76; margin: 0.2rem 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  background: var(--red);
  border-color: var(--red);
  color: #0a0a0a;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); margin-top: 0.75rem; }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.err {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.2);
  color: #fecdd3;
  font-size: 0.86rem;
}
.err li { margin: 0.15rem 0; list-style: none; }
.err li + li { margin-top: 0.35rem; }
.ok {
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 8px;
  background: rgba(6, 78, 59, 0.22);
  color: #bbf7d0;
  margin-bottom: 1rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.86rem;
}
.foot { margin-top: 1.5rem; font-size: 0.8rem; }
.account-box {
  border: 1px solid var(--line);
  background: #050505;
  padding: 1rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.account-box code { color: #fda4af; word-break: break-all; }
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 20% 0%, rgba(225, 29, 72, 0.07), transparent 55%),
    radial-gradient(ellipse 100% 60% at 100% 100%, rgba(244, 63, 94, 0.05), transparent 50%),
    var(--void);
}
.grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 70%);
}
main { position: relative; z-index: 1; }

/* —— Centered auth card (modern / modal-style) —— */
.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 5vh, 2.5rem) 1.25rem;
  box-sizing: border-box;
}
.auth-page > main,
.auth-container {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  flex: 0 0 auto;
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  border: 1px solid var(--card-edge);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 20px 50px rgba(0, 0, 0, 0.45);
  padding: 2.25rem 2rem 1.75rem;
  box-sizing: border-box;
}
.auth-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}
.auth-brand-txt {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--paper);
  text-decoration: none;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}
.auth-brand-txt em { font-style: normal; color: var(--red-hot); }
.auth-card-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 0.55rem;
  padding: 0.12rem;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.auth-card-mark:hover { background: rgba(255, 255, 255, 0.05); }
.auth-card-mark img {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.auth-card .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.auth-card .brand-img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.auth-card .brand-word { line-height: 1.1; }
/* Legacy: some pages used SVG in .brand-icon; keep hidden if present */
.auth-card .brand-icon {
  width: 2rem;
  height: 2rem;
  display: none;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(225, 29, 72, 0.22), rgba(15, 15, 18, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fda4af;
  flex-shrink: 0;
}
.auth-card h1 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--paper);
}
.auth-lead {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.auth-lead strong {
  color: var(--paper);
  font-weight: 600;
}
.auth-lead strong em {
  font-style: normal;
  color: var(--link);
  font-weight: 700;
}
.auth-hint {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #7c7c88;
  margin: 0 0 0.75rem;
}
.auth-hint a { font-weight: 600; }
.field-group {
  margin-bottom: 0;
}
.auth-card .field-group + .field-group {
  margin-top: 1.1rem;
}
.auth-card .field-group label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d1d5db;
  font-weight: 500;
}
.auth-card .field-group label.auth-label-sentence {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.78rem;
  font-weight: 600;
}
/* Icon + input in one control */
.field-row {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  align-items: center;
  column-gap: 0.55rem;
  min-height: 2.85rem;
  border: 1px solid var(--input-stroke);
  border-radius: var(--btn-radius);
  background: var(--input-fill);
  padding: 0 0.75rem 0 0.7rem;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  color-scheme: dark;
}
.field-row:focus-within {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.12);
}
.field-row--pw {
  grid-template-columns: 1.35rem 1fr 2.5rem;
  padding-right: 0.35rem;
}
.field-row .field-ico {
  color: #6b7280;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.field-row .field-ico svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}
.field-row input[type="email"],
.field-row input[type="password"],
.field-row input[type="text"] {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.65rem 0.2rem;
  border: none;
  border-radius: 0;
  font-size: 0.95rem;
  color: var(--paper);
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.field-row input::placeholder {
  color: #6b7280;
}
.field-row input:focus {
  outline: none;
  border: none;
  box-shadow: none !important;
}
/* Autofill / forced light backgrounds — keep text inside the dark field shell */
.field-row input:-webkit-autofill,
.field-row input:-webkit-autofill:hover,
.field-row input:-webkit-autofill:focus,
.field-row input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--input-fill) inset !important;
  box-shadow: 0 0 0 1000px var(--input-fill) inset !important;
  -webkit-text-fill-color: var(--paper) !important;
  caret-color: var(--paper);
  transition: background-color 99999s ease-out;
}
.field-pw-toggle {
  justify-self: end;
  align-self: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 0;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s, background 0.12s;
}
.field-pw-toggle:hover { color: var(--paper); background: rgba(255, 255, 255, 0.06); }
.field-pw-toggle:focus-visible {
  outline: 2px solid rgba(251, 113, 133, 0.45);
  outline-offset: 1px;
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.15rem 0 0.25rem;
  flex-wrap: wrap;
}
.auth-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d1d5db;
  cursor: pointer;
  user-select: none;
}
.auth-check input {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 4px;
  accent-color: var(--red-hot);
  cursor: pointer;
}
.forgot-link {
  font-size: 0.8rem;
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}
.forgot-link:hover { text-decoration: underline; color: var(--link-hover); }
.btn-gradient {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  margin-top: 1.25rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--btn-radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  background: linear-gradient(160deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 0 6px 24px rgba(225, 29, 72, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  text-transform: none;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  transition: filter 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn-gradient:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 32px rgba(225, 29, 72, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.btn-gradient:active { transform: scale(0.99); }
.btn-gradient:focus-visible {
  outline: 2px solid rgba(251, 113, 133, 0.5);
  outline-offset: 2px;
}
.auth-foot-row {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: #9ca3af;
}
.auth-foot-row a { font-weight: 600; }
.auth-back {
  text-align: center;
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: #6b7280;
}
.auth-back a {
  color: var(--link);
  font-weight: 500;
}
.auth-back a:hover { color: var(--link-hover); }
/* Register: wider container, scrolls on small screens */
.auth-page--register {
  justify-content: flex-start;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}
.auth-container--wide {
  max-width: 32rem;
}
.auth-card--register {
  max-width: 32rem;
}
.auth-card--wide { max-width: 28rem; }
@media (min-width: 480px) {
  .auth-card--register {
    max-width: 32rem;
  }
}
