/* ─── Brutalist auth pages — scoped to body.b-auth ──────────────────────────
   Aplica solo cuando la plantilla setea {% block body_class %}b-auth{% endblock %}.
   Todas las clases son b-* para no colisionar con voco.css.
*/

body.b-auth {
  background: #F5F4EE !important;
  color: #0A0A0A;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  --paper:   #F5F4EE;
  --ink:     #0A0A0A;
  --ink-2:   #2A2A2A;
  --ink-3:   #6A6A6A;
  --signal:  #FFCF00;
  --neon:    #C9F227;
  --hot:     #FF4D3D;
  --display: 'Space Grotesk', -apple-system, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* Ocultar nav + footer del base (auth tiene su propio look minimal) */
body.b-auth > nav,
body.b-auth > footer { display: none !important; }

/* Wrapper */
body.b-auth .b-auth-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* Logo */
body.b-auth .b-auth-logo { text-align: center; margin-bottom: 24px; }
body.b-auth .b-auth-logo img { height: 88px; width: auto; display: inline-block; }

/* Tag (signal yellow) */
body.b-auth .b-auth-tag-row { text-align: center; margin-bottom: 18px; }
body.b-auth .b-auth-tag {
  display: inline-block;
  background: var(--signal); color: var(--ink);
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  padding: 6px 14px;
  border: 2px solid var(--ink);
}

/* Titles */
body.b-auth .b-auth-title {
  font-family: var(--display);
  font-size: 36px; font-weight: 700;
  letter-spacing: -.03em; line-height: 1;
  text-align: center;
  margin: 0 0 12px 0;
  color: var(--ink);
}
body.b-auth .b-auth-title em {
  font-style: normal;
  background: var(--neon); color: var(--ink);
  padding: 0 10px;
  box-shadow: 4px 4px 0 var(--ink);
}
body.b-auth .b-auth-blurb {
  font-family: var(--mono);
  font-size: 13px; line-height: 1.55;
  text-align: center;
  color: var(--ink-2);
  margin: 0 0 28px 0;
}

/* Card */
body.b-auth .b-auth-card {
  background: var(--paper);
  border: 4px solid var(--ink);
  padding: 32px 28px;
  margin-bottom: 16px;
}
body.b-auth .b-auth-card-title {
  font-family: var(--display);
  font-size: 22px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.05;
  margin: 0 0 8px 0;
  color: var(--ink);
}
body.b-auth .b-auth-card-blurb {
  font-family: var(--mono);
  font-size: 13px; line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 22px 0;
}

/* OAuth buttons */
body.b-auth .b-oauth {
  width: 100%;
  padding: 14px 16px;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 14px; font-weight: 700;
  letter-spacing: -.01em;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background .12s ease;
  text-decoration: none;
  border-radius: 0;
}
body.b-auth .b-oauth:hover { background: var(--neon); }
body.b-auth .b-oauth-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Divider */
body.b-auth .b-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0;
}
body.b-auth .b-divider::before,
body.b-auth .b-divider::after {
  content: ""; flex: 1; height: 3px; background: var(--ink);
}
body.b-auth .b-divider span {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink);
}

/* Form */
body.b-auth .b-field { margin-bottom: 14px; }
body.b-auth .b-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink); margin-bottom: 6px;
}
body.b-auth .b-label .opt {
  color: var(--ink-3); font-weight: 500;
  text-transform: none; letter-spacing: 0;
  margin-left: 6px;
}
body.b-auth .b-input {
  width: 100%;
  padding: 12px 14px;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  outline: none;
  border-radius: 0;
  appearance: none;
}
body.b-auth .b-input:focus { background: #FFFCEB; }
body.b-auth .b-input::placeholder { color: var(--ink-3); }
body.b-auth select.b-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%230A0A0A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Buttons */
body.b-auth .b-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 16px 22px;
  border: 4px solid var(--ink);
  background: var(--ink);
  color: var(--signal);
  font-family: var(--display);
  font-size: 16px; font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
  margin-top: 6px;
  border-radius: 0;
}
body.b-auth .b-btn:hover { background: var(--signal); color: var(--ink); }
body.b-auth .b-btn:disabled { opacity: .4; cursor: not-allowed; }

body.b-auth .b-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 3px solid var(--ink);
  font-size: 13px;
  padding: 10px 18px;
  width: auto;
  margin-top: 0;
}
body.b-auth .b-btn-ghost:hover { background: var(--neon); color: var(--ink); }

/* Inline links inside card */
body.b-auth .b-auth-card a {
  color: var(--ink); font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
body.b-auth .b-auth-card a:hover { background: var(--signal); }

/* Card-level helper rows */
body.b-auth .b-link-row {
  text-align: center;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .08em;
}

/* Footer (below card) */
body.b-auth .b-foot {
  text-align: center; margin-top: 16px;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .08em;
}
body.b-auth .b-foot a {
  color: var(--ink); font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 1px;
}
body.b-auth .b-foot a:hover { background: var(--signal); }

/* Demo link (centered, ghost button) */
body.b-auth .b-demo-row {
  text-align: center; margin-top: 14px;
}

/* Consent / info inline blocks */
body.b-auth .b-consent {
  margin-top: 16px;
  padding: 14px;
  background: var(--neon);
  border: 3px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px; line-height: 1.5;
}
body.b-auth .b-consent label {
  display: flex; gap: 10px; align-items: flex-start;
  cursor: pointer;
}
body.b-auth .b-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px; height: 16px;
  flex-shrink: 0;
  accent-color: var(--ink);
}

/* Flash messages (already wrapped by base.html in .alert) */
body.b-auth .alert,
body.b-auth .alert-error,
body.b-auth .alert-success,
body.b-auth .alert-info,
body.b-auth .alert-warning {
  background: var(--hot); color: var(--paper);
  padding: 12px 16px;
  border: 3px solid var(--ink);
  margin: 0 0 18px 0;
  font-family: var(--mono); font-size: 12px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 0;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
body.b-auth .alert-success { background: var(--neon); color: var(--ink); }
body.b-auth .alert-info { background: var(--signal); color: var(--ink); }
body.b-auth .alert-warning { background: var(--signal); color: var(--ink); }

/* OTP code input — bigger letters, monospace centered */
body.b-auth .b-input.otp {
  text-align: center;
  letter-spacing: .35em;
  font-size: 22px;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 540px) {
  body.b-auth .b-auth-page { padding: 32px 16px 60px; }
  body.b-auth .b-auth-title { font-size: 28px; }
  body.b-auth .b-auth-card { padding: 24px 18px; }
  body.b-auth .b-auth-logo img { height: 64px; }
}
