body.auth-body {
  overflow: auto;
  height: auto;
  min-height: 100vh;
}

/* Hero */
section.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

section.hero::before {
  content: '';
  position: absolute; 
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(139,0,0,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(220,38,38,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; 
  letter-spacing: 4px; 
  text-transform: uppercase;
  color: var(--red-glow); 
  margin-bottom: 18px;
  display: flex; 
  align-items: center; 
  gap: 10px;
}

.hero-label::before, .hero-label::after {
  content: ''; 
  flex: 1; 
  max-width: 40px;
  height: 1px; 
  background: var(--red-deep);
}

h1.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 10vw, 120px);
  letter-spacing: 8px;
  line-height: .95;
  margin-bottom: 24px;
}

h1.hero-title em { 
  color: var(--red-bright); 
  font-style: normal; 
  text-shadow: 0 0 40px rgba(220,38,38,.5); 
}

p.hero-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px; 
  color: var(--light); 
  max-width: 520px;
  line-height: 1.5; 
  margin-bottom: 40px;
}

.hero-actions { 
  display: flex; 
  gap: 14px; 
  flex-wrap: wrap; 
  justify-content: center; 
}

a.btn-cta {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; 
  letter-spacing: 2px;
  padding: 14px 40px; 
  border-radius: 6px;
  cursor: pointer; 
  text-decoration: none;
  transition: all .25s;
}

a.btn-cta.primary {
  background: var(--red-bright); 
  color: white;
  box-shadow: 0 0 20px rgba(220,38,38,.5);
}

a.btn-cta.primary:hover { 
  background: var(--red-glow); 
  box-shadow: 0 0 30px rgba(239,68,68,.6); 
  transform:translateY(-2px); 
}

a.btn-cta.secondary {
  background: transparent; 
  color: var(--light);
  border: 1px solid var(--border);
}

a.btn-cta.secondary:hover { 
  border-color: var(--red-mid); 
  color: var(--white); 
}


section.stats-bar {
  display: flex; 
  justify-content: center; 
  gap: 60px;
  padding: 40px 24px; 
  flex-wrap: wrap;
}

.stat-item { 
  text-align: center; 
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px; 
  color: var(--red-glow);
  text-shadow: 0 0 20px rgba(239,68,68,.4);
}

.stat-lbl { 
  font-family: 'Share Tech Mono', monospace; 
  font-size: 11px; 
  color: var(--gray); 
  letter-spacing: 2px; 
  text-transform: uppercase; 
  margin-top: 4px; 
}


section.features {
  padding: 60px 24px; 
  max-width: 1100px; 
  margin: 0 auto;
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 16px;
}

article.feat-card {
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 10px;
  padding: 28px; 
  position: relative; 
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}

article.feat-card::before {
  content: ''; 
  position: absolute; 
  top:0; 
  left:0; 
  right:0; 
  height:2px;
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright), transparent);
  transform: scaleX(0); 
  transform-origin: left; 
  transition: transform .3s;
}

article.feat-card:hover::before { 
  transform: scaleX(1); 
}

article.feat-card:hover { 
  border-color: var(--red-mid); 
  transform: translateY(-2px); 
}

.feat-icon { 
  font-size: 36px; 
  margin-bottom: 14px; 
}

.feat-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; 
  letter-spacing: 2px; 
  margin-bottom: 8px;
}

.feat-title em { 
  color: var(--red-bright); 
  font-style: normal; 
}

.feat-desc { 
  font-size: 14px; 
  color: var(--gray); 
  line-height: 1.5; 
}


section.hero-footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; 
  color: var(--gray);
}


/* ---- Login / Registro ---- */
section.auth-wrap {
  min-height: 100vh;
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 40px 24px;
  position: relative;
}

section.auth-wrap::before {
  content: '';
  position: absolute; 
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(139,0,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

article.auth-card {
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 12px;
  padding: 40px; 
  width: 100%; 
  max-width: 420px;
  position: relative; 
  overflow: hidden;
  box-shadow: 0 0 60px rgba(139,0,0,0.15);
}

article.auth-card::before {
  content: ''; 
  position: absolute; 
  top:0; 
  left:0; 
  right:0; 
  height:2px;
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright), transparent);
}

.auth-logo {
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 10px;
  margin-bottom: 28px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; 
  letter-spacing: 4px;
}

.auth-logo em { 
  color: var(--red-bright); 
  text-shadow: 0 0 20px var(--red-neon); 
  font-style: normal; 
}

h2.auth-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; 
  letter-spacing: 3px;
  text-align: center; 
  margin-bottom: 6px;
}

h2.auth-title em { 
  color: var(--red-bright); 
  font-style: normal; 
}

p.auth-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; 
  color: var(--gray);
  text-align: center; 
  margin-bottom: 28px;
}


/* avatar */
.avatar-picker {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 10px;
  margin-bottom: 20px;
}

.avatar-preview {
  width: 76px; 
  height: 76px; 
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-deep), var(--red-bright));
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 28px; 
  color: white;
  border: 3px solid var(--red-mid); 
  box-shadow: 0 0 20px rgba(220,38,38,.3);
  overflow: hidden; 
  cursor: pointer; 
  position: relative;
}

.avatar-preview img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.avatar-preview .avatar-overlay {
  position: absolute; 
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; 
  align-items: center; 
  justify-content: center;
  opacity: 0; 
  transition: opacity .2s;
  font-size: 20px;
}

.avatar-preview:hover .avatar-overlay { 
  opacity: 1; 
}

.avatar-hint {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; 
  color: var(--gray); 
  letter-spacing: 1px;
}

#avatarInput { 
  display: none; 
}


fieldset.auth-form { border: none; 
  display: flex; 
  flex-direction: column; 
  gap: 14px; 
}

.field-group { 
  display: flex; 
  flex-direction: column; 
  gap: 4px; 
}

input.auth-input {
  width: 100%; 
  background: var(--dark); 
  border: 1px solid var(--border); 
  border-radius: 8px;
  padding: 11px 14px; 
  color: var(--white);
  font-family: 'Rajdhani', sans-serif; 
  font-size: 14px;
  outline: none; 
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 8px;
}

input.auth-input:focus { 
  border-color: var(--red-mid); 
  box-shadow: 0 0 0 2px rgba(185,28,28,.15); 
}

input.auth-input::placeholder { 
  color: var(--gray); 
}

input.auth-input.error { 
  border-color: var(--red-bright); 
}

span.field-error { 
  font-family: 'Share Tech Mono', monospace; 
  font-size: 10px; 
  color: var(--red-glow); 
  display: none; 
}

span.field-error.show { 
  display: block; 
}

button.btn-auth {
  width: 100%; 
  background: var(--red-bright); 
  border: none; 
  border-radius: 8px;
  padding: 13px; 
  color: white;
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 18px; 
  letter-spacing: 2px;
  cursor: pointer; 
  transition: all .25s;
  box-shadow: 0 0 20px rgba(220,38,38,.4); 
  margin-top: 4px;
}

button.btn-auth:hover { 
  background: var(--red-glow); 
  box-shadow: 0 0 30px rgba(239,68,68,.6); 
  transform: translateY(-1px); 
}

.auth-switch {
  text-align: center; 
  margin-top: 18px;
  font-family: 'Share Tech Mono', monospace; 
  font-size: 11px; 
  color: var(--gray);
}

.auth-switch a { 
  color: var(--red-glow); 
  text-decoration: none; 
}

.auth-switch a:hover { 
  text-decoration: underline; 
}

@media(max-width:640px) {
  section.features { grid-template-columns: 1fr; }
  section.stats-bar { gap: 30px; }
}
