/* ==========================================================================
   BUZZTARD.CO — Standalone Auth Stylesheet (Login & Register)
   Light Punk Streetwear Aesthetic with Grid/Dot Motif & Brutalist Cards
   ========================================================================== */

:root {
  --auth-bg: #f3f1eb;
  --auth-paper: #ffffff;
  --auth-ink: #111111;
  --auth-red: #ed1c24;
  --auth-red-dark: #cc0000;
  --auth-line: #d6d2c4;
  --auth-muted: #6b6860;
  --auth-green: #1fbd64;
  --auth-input-bg: #ffffff;
  --auth-shadow: 8px 8px 0 #111111;
  --auth-shadow-red: 4px 4px 0 #ed1c24;
}

/* Page Reset & Base */
body.auth-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--auth-bg);
  color: var(--auth-ink);
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Light Background Motif 1: Fine Graph Paper Matrix */
body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(ellipse 65% 55% at 50% -10%, rgba(237, 28, 36, 0.08) 0%, transparent 60%),
    linear-gradient(to right, rgba(17, 17, 17, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.055) 1px, transparent 1px);
  background-size: 100% 100%, 26px 26px, 26px 26px;
}

/* Light Background Motif 2: Halftone Dot Matrix */
body.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image: radial-gradient(circle, rgba(17, 17, 17, 0.22) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 25%, transparent 85%);
}

/* Decorative Watermark Typo in Background */
.auth-bg-watermark {
  position: fixed;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(90px, 15vw, 200px);
  font-weight: 900;
  color: rgba(17, 17, 17, 0.045);
  line-height: 0.8;
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
  text-transform: uppercase;
  z-index: 1;
}

.auth-bg-watermark--bottom {
  right: -20px;
  bottom: -20px;
}

.auth-bg-watermark--top {
  left: -20px;
  top: 85px;
}

/* Standalone Auth Top Header */
.auth-topbar {
  position: relative;
  z-index: 10;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--auth-ink);
  background: rgba(243, 241, 235, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.auth-brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.auth-brand-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--auth-ink);
  padding: 4px 8px;
  background: #ffffff;
  border: 1.5px solid var(--auth-ink);
  box-shadow: 2px 2px 0 var(--auth-red);
  border-radius: 1px;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-ink);
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 2px solid var(--auth-ink);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--auth-ink);
  transition: all 0.18s ease;
}

.auth-back-link:hover {
  background: var(--auth-ink);
  color: #ffffff;
  box-shadow: 4px 4px 0 var(--auth-red);
  transform: translate(-1px, -1px);
}

.auth-back-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.auth-back-link:hover svg {
  transform: translateX(-3px);
}

/* Pure Centered Auth Stage */
.auth-stage-pure {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px) 20px 80px;
  box-sizing: border-box;
  min-height: calc(100vh - 72px);
}

/* Pure Auth Card (Light theme with Streetwear Brutalist Box-Shadow) */
.auth-card-pure {
  margin: auto;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 2px solid var(--auth-ink);
  box-shadow: 8px 8px 0 var(--auth-ink);
  padding: clamp(32px, 4.5vw, 46px);
  position: relative;
  box-sizing: border-box;
}

.auth-card-pure.is-register {
  max-width: 580px;
}

/* Card Top Red Accent Motif Bar */
.auth-card-pure::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 5px;
  background: var(--auth-red);
}

/* Technical Corner Mark Motif */
.auth-card-pure::after {
  content: "+";
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: 'Barlow', monospace, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--auth-red);
  pointer-events: none;
}

/* Card Header */
.auth-card-head {
  margin-bottom: 26px;
}

.auth-card-kicker {
  margin: 0 0 8px;
  color: var(--auth-red);
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-card-heading {
  margin: 0 0 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--auth-ink);
}

.auth-card-heading span {
  color: var(--auth-red);
}

.auth-card-desc {
  margin: 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Alert Boxes (Notice & Error) */
.auth-alert-box {
  margin-bottom: 24px;
  border: 2px solid var(--auth-ink);
  border-left: 8px solid var(--auth-red);
  padding: 14px 18px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 3px 3px 0 var(--auth-line);
  animation: authFadeIn 0.3s ease-out;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-alert-notice {
  border-left-color: var(--auth-red);
  background: #fff8f8;
  color: var(--auth-ink);
}

.auth-alert-notice svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--auth-red);
  margin-top: 2px;
}

.auth-alert-error {
  border-left-color: var(--auth-red);
  background: #fff4f4;
  color: #b80d14;
}

.auth-alert-error svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #b80d14;
  margin-top: 2px;
}

/* Form Styles */
.auth-form-content {
  display: grid;
  gap: 18px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field label {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--auth-ink);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  background: #ffffff;
  border: 2px solid var(--auth-ink);
  border-radius: 0;
  color: var(--auth-ink);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.auth-input::placeholder {
  color: #9a978f;
  font-weight: 400;
}

.auth-input:focus {
  outline: 3px solid rgba(237, 28, 36, 0.2);
  border-color: var(--auth-red);
  background: #ffffff;
}

textarea.auth-input {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

/* Password Reveal Toggle */
.auth-pw-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #726f68;
  cursor: pointer;
  padding: 6px;
  display: grid;
  place-items: center;
  transition: color 0.2s ease;
}

.auth-pw-toggle:hover {
  color: var(--auth-ink);
}

.auth-pw-toggle svg {
  width: 19px;
  height: 19px;
}

/* Submit Action Button */
.auth-btn-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  background: var(--auth-ink);
  border: 2px solid var(--auth-ink);
  color: #ffffff;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--auth-red);
  transition: all 0.18s ease;
}

.auth-btn-submit:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--auth-red);
  background: #000000;
}

.auth-btn-submit:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--auth-red);
}

.auth-btn-submit svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.auth-btn-submit:hover svg {
  transform: translateX(4px);
}

/* Card Switch / Alt Action */
.auth-card-footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--auth-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-switch-text {
  font-size: 14px;
  color: var(--auth-muted);
  margin: 0;
}

.auth-switch-link {
  color: var(--auth-red);
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.auth-switch-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-card-meta {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--auth-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-card-meta span.dot {
  color: var(--auth-green);
  font-weight: 900;
}

/* Register 2-column Grid for Dense Fields */
.auth-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Honeypot hidden input */
.auth-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Responsive */
@media (max-width: 640px) {
  .auth-topbar {
    height: 60px;
    padding: 0 16px;
  }

  .auth-brand-logo {
    height: 28px;
  }

  .auth-brand-badge {
    display: none;
  }

  .auth-card-pure {
    padding: 26px 18px;
    box-shadow: 5px 5px 0 var(--auth-ink);
  }

  .auth-grid-2col {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .auth-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .auth-back-link span {
    display: none;
  }
}
