* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', sans-serif;
  background: #0f1117;

  min-height: 100vh;

  display: flex;
  flex-direction: column;
}


.card {
  background: #1a1d2e;
  border: 1px solid #2a2d3e;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.container{
  flex: 1;

  width: 100%;
  max-width: 440px;
  padding: 20px;

  display: flex;
  justify-content: center;
  align-items: center;

  margin: auto;
}

/* TABS */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid #2a2d3e;
  padding-bottom: 16px;
}

.tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: 1px solid #2a2d3e;
  border-radius: 8px;
  color: #7a7d8f;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.activo {
  background: #5b8af0;
  border-color: #5b8af0;
  color: white;
  font-weight: 600;
}

/* TÍTULOS */
h2 { color: #f0f0f5; font-size: 1.4rem; font-weight: 600; margin-bottom: 5px; }
.subtitulo { color: #7a7d8f; font-size: 0.88rem; margin-bottom: 24px; }

/* CAMPOS */
.campo { margin-bottom: 16px; }

.campo label {
  display: block;
  color: #9fa2b0;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
}

.campo input {
  width: 100%;
  padding: 11px 14px;
  background: #0f1117;
  border: 1px solid #2a2d3e;
  border-radius: 9px;
  color: #f0f0f5;
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.2s;
}

.campo input:focus { border-color: #5b8af0; }

/* CAPTCHA */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

#img-captcha {
  border-radius: 8px;
  border: 1px solid #2a2d3e;
  cursor: pointer;
  height: 50px;
}

.btn-refresh {
  background: #1e2235;
  border: 1px solid #2a2d3e;
  color: #9fa2b0;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-refresh:hover { background: #2a2d3e; color: #f0f0f5; }

/* BOTÓN PRINCIPAL */
.btn-principal {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  background: #5b8af0;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-principal:hover { background: #4a76e0; }
.btn-principal:active { transform: scale(0.98); }
.btn-principal:disabled { background: #3a4060; cursor: not-allowed; }

/* MENSAJES */
.mensaje {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
}
.aside{
     width: 100%;
  text-align: center;
  padding: 1em;
  border-top: 1px solid #2a2d3e;
  color: white;
}
.oculto { display: none; }

.error   { background: #2d1a1a; border: 1px solid #8b2020; color: #f08080; }
.exito   { background: #1a2d1a; border: 1px solid #207a20; color: #80e080; }
.cargando{ background: #1a1f2d; border: 1px solid #3a5080; color: #80a8f0; }
.footer{
  width: 100%;
  text-align: center;
  padding: 1em;
  border-top: 1px solid #2a2d3e;
  color: white;
}