/* ==== RESET ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(120deg, #0a0f1e, #101b3a);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  color: #fff;
  padding: 10px;
  overflow-y: auto;
}

/* ==== CARD ==== */
.register-card {
  background: rgba(15, 22, 43, 0.95);
  backdrop-filter: blur(8px);
  padding: 35px 30px;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(0, 198, 255, 0.2);
  width: 100%;
  max-width: 420px;
  text-align: center;
  animation: fadeIn 1.2s ease;
}

.register-card h3 {
  color: #00c6ff;
  font-size: 1.6em;
  margin-bottom: 8px;
}

.register-card p {
  font-size: 0.95em;
  color: #bbb;
  margin-bottom: 20px;
}

/* ==== INPUTS & SELECTS ==== */
.register-card input,
.register-card select {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  background: #141d33;
  color: #fff;
  margin-bottom: 12px;
  outline: none;
  font-size: 0.95em;
  transition: 0.3s;
}

.register-card input::placeholder {
  color: #aaa;
}

.register-card input:focus,
.register-card select:focus {
  box-shadow: 0 0 0 2px #00c6ff;
}

/* ==== PASSWORD TOGGLE ==== */
.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #999;
  user-select: none;
}

.toggle-password:hover {
  color: #00c6ff;
}

/* ==== BUTTONS ==== */
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s;
}

.btn-primary {
  background: #00c6ff;
  color: #fff;
}

.btn-primary:hover {
  background: #00a0cc;
}

/* ==== MESSAGE ==== */
#registro_result {
  margin-top: 15px;
  font-size: 0.95em;
  word-wrap: break-word;
}

.success {
  color: #32ff89;
}

.error {
  color: #ff5f5f;
}

/* ==== REGISTER TEXT ==== */
.register-text {
  margin-top: 20px;
  color: #bbb;
  font-size: 0.9em;
}

.register-text a {
  color: #00c6ff;
  text-decoration: none;
}

.register-text a:hover {
  text-decoration: underline;
}

/* ==== REFERIDO SPECIAL ==== */
#codigo_referido {
  background-color: #d4f7d4;
  border: 1px solid #61ff61;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  color: #2f6627;
}

#codigo_referido::placeholder {
  color: #000;
}

/* ==== LABEL ==== */
label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #fff;
}

/* ==== ANIMATION ==== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 480px) {
  body {
    display: block; /* 🔥 deja de usar flex en móviles */
    padding: 20px 0;
    min-height: auto;
    overflow-y: auto;
  }

  .register-card {
    margin: 40px auto;
    padding: 25px 20px;
    max-width: 92%;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0, 198, 255, 0.25);
  }

  .register-card h3 {
    font-size: 1.4em;
  }

  .register-card input,
  .register-card select {
    font-size: 0.9em;
    padding: 10px 12px;
  }

  .btn {
    padding: 11px;
    font-size: 0.95em;
  }

  #registro_result {
    font-size: 0.85em;
  }
}


.btn:disabled {
    background-color: #ccc !important; /* gris claro */
    color: #666 !important;            /* texto más apagado */
    cursor: not-allowed !important;    /* cambia el cursor */
    box-shadow: none !important;       /* quita sombra si hay */
    opacity: 0.7;                      /* un poco transparente */
}
