* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fuente personalizada: coloca tus archivos de fuente en static/fonts/neo_esport/ */
@font-face {
  font-family: 'NEOESPORT';
  src: url('../fonts/neo_esport/NEOESPORT.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

body {
  background-color: #061916;
  min-height: 100vh;
  color: white;
  position: relative; /* base para posicionar elementos */
  overflow-x: hidden;
  overflow-y: auto;
}

/* Título centrado superior */
.hero {
  position: absolute;
  top: 16%; /* separa más del recuadro de login */
  left: 50%;
  transform: translateX(-50%);
  transition: top 0.27s ease; /* 50% más rápido que 0.4s (~0.27s) */
  z-index: 10; /* sobre la tarjeta en modo "over" */
}

.site-hero-title {
  font-family: 'NEOESPORT', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #07EEFE; /* solo color, sin borde */
  padding: 8px 24px;
  letter-spacing: 2px;
  font-size: 72px; /* 10% más pequeño que antes */
  line-height: 1.2;
  text-align: center;
  /* Resplandor exterior */
  text-shadow:
    0 0 9px  rgba(0, 176, 135, 0.5),
    0 0 18px rgba(0, 176, 135, 0.5),
    0 0 27px rgba(0, 176, 135, 0.5);
  /* Hacer la fuente más chata (aplastar verticalmente) */
  display: inline-block;
  transform: scaleY(0.85);
  transform-origin: center;
  /* Evitar que el texto sea seleccionable */
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Evitar interacciones (clic derecho, arrastre, etc.) */
  pointer-events: none;
}

/* Cuando el registro está activo, sube el título para que no quede tapado */
.register-active .hero {
  top: 6%;
}

@media (max-width: 480px) {
  .register-active .hero {
    top: 4%;
  }
}

.container {
  background-color: #0c312c;
  width: 100%;
  max-width: 400px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: absolute; /* centra el recuadro exactamente */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1; /* por debajo del título hero */
}

/* ===== Modos de colocación del logo ===== */
/* Modo por defecto: logo arriba y por encima del contenedor */
body.hero-over .hero { position: absolute; z-index: 10; }
body.hero-over .site-hero-title { font-size: 72px; opacity: 1; }

/* Modo detrás: si no cabe arriba, el logo se coloca detrás y grande */
body.hero-behind .hero {
  position: fixed;
  top: 62%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0; /* por detrás del contenedor */
  pointer-events: none;
}
body.hero-behind .site-hero-title {
  font-size: min(22vw, 260px);
  opacity: 0.18; /* sutil detrás */
}

/* Ajuste cuando el registro está activo: subimos un poco el título solo en modo over */
body.hero-over.register-active .hero { top: 6%; }
@media (max-width: 480px) {
  body.hero-over.register-active .hero { top: 4%; }
}

/* Título principal arriba de las pestañas */
.page-title {
  text-align: center;
  margin-bottom: 12px;
  color: #00af86;
}

.toggle-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.toggle-btn {
  background: none;
  border: none;
  color: #00af86;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.toggle-btn.active {
  background-color: #279a8b;
  color: white;
}

.form {
  display: none;
}

.form.active {
  display: block;
}

.form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #00af86;
}

.input-group {
  margin-bottom: 18px;
  position: relative;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #00af86;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: rgba(39, 154, 139, 0.15);
  color: white;
  font-size: 15px;
  outline: none;
}

.input-group.has-left-icon input {
  padding-left: 40px;
}

.input-group input::placeholder {
  color: #7ca59c;
  opacity: 0.7;
}

.input-group .icon {
  position: absolute;
  left: 12px;
  top: 38px;
  color: #00af86;
  pointer-events: none;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 38px;
  cursor: pointer;
  color: #00af86;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #279a8b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #00af86;
}

/* Mensajes flash */
.flash-container {
  margin-bottom: 16px;
}
.flash {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  opacity: 1;
  transition: opacity 0.6s ease, margin 0.4s ease, padding 0.4s ease, height 0.4s ease;
}
.flash.fade-out {
  opacity: 0;
  margin: 0;
  padding: 0;
  height: 0;
  overflow: hidden;
}
.flash-success { background: #1c7a69; color: #fff; }
.flash-info { background: #1c4f7a; color: #fff; }
.flash-warning { background: #8a6d3b; color: #fff; }
.flash-danger { background: #7a1c1c; color: #fff; }

/* ===== Overlay de aprobación de cuenta ===== */
.approval-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 25, 22, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.approval-modal {
  background: #0c312c;
  border-radius: 14px;
  padding: 32px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  animation: approvalFadeIn 0.3s ease;
}
@keyframes approvalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.approval-icon {
  text-align: center;
  margin-bottom: 16px;
}
.approval-title {
  text-align: center;
  color: #07EEFE;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.approval-desc {
  text-align: center;
  color: #a0c4bc;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.approval-modal .input-group {
  margin-bottom: 16px;
}
.approval-modal .input-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #00af86;
}
.approval-modal .input-group textarea,
.approval-modal .input-group input[type="url"] {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background-color: rgba(39, 154, 139, 0.15);
  color: white;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  resize: vertical;
}
.approval-modal .input-group textarea::placeholder,
.approval-modal .input-group input[type="url"]::placeholder {
  color: #7ca59c;
  opacity: 0.7;
}
.approval-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.contact-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #07EEFE;
  color: #07EEFE;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.contact-btn:hover {
  background: rgba(7, 238, 254, 0.1);
  color: #fff;
}
