/* --- MODAL OVERLAY PROFESIONAL --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.18); /* azul oscuro, semitransparente */
  z-index: 2000;
  padding: 0 12px;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(30, 64, 175, 0.18), 0 2px 8px rgba(30, 64, 175, 0.10);
  padding: 22px 18px 18px 18px;
  min-width: 0;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-content h3 {
  margin-top: 0;
  color: #1e40af;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.modal-content p {
  color: #334155;
  font-size: 1rem;
  margin-bottom: 14px;
}
.modal-input {
  width: 100%;
  max-width: 260px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  margin-bottom: 10px;
  font-size: 1rem;
  box-sizing: border-box;
}
.modal-button {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 0;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  max-width: 260px;
  margin-top: 2px;
  transition: background 0.2s;
  box-sizing: border-box;
}
.modal-button:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}
.form-group.pass-confirm #password-error {
  /* compatibilidad con layout anterior */
  color: #e74c3c;
  font-size: 0.97em;
  margin-top: 4px;
  display: none;
  font-weight: 500;
  letter-spacing: -0.2px;
}
body {
  /* Alineado con el look de IniciarSesion.css */
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  color: #1f2937;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  z-index: 1000;
  border-bottom: 1px solid #e5e7eb;
}
.main-header .logo {
  margin: 0;
  color: #2563eb;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

main.container {
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* --------------------------------------------
   Registro: estilos específicos (scoped)
   -------------------------------------------- */
.auth-card--register {
  /* mantiene la base de .auth-card (IniciarSesion.css) */
  max-width: 760px;
}

/* Hacer el form menos vertical en desktop: 2 columnas */
.auth-card--register #registerForm.auth-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .auth-card--register #registerForm.auth-form {
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    row-gap: 16px;
    align-items: start;
  }
}

.auth-card--register .form-group.checkbox,
.auth-card--register .form-group--full,
.auth-card--register #registerForm > button.auth-button,
.auth-card--register .password-meta--full {
  grid-column: 1 / -1;
}

/* Asegurar que el wrapper sea referencia para el ojo */
.auth-card--register .form-input-wrapper {
  position: relative;
}

/* Dejar espacio a la derecha para el ojo (aunque no esté) */
.auth-card--register .form-input-wrapper .form-input {
  padding-right: 46px;
}

.gremio-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
}

.gremio-brand__logo {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
  margin-bottom: 10px;
}

.auth-card--register .gremio-mensaje {
  color: #1e293b;
  font-size: 0.98rem;
  margin: 6px 0 16px 0;
  text-align: center;
  line-height: 1.45;
}

.auth-card--register .gremio-destacado {
  color: #2563eb;
  font-weight: 700;
}

.auth-card--register .password-meta {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.auth-card--register .password-meta--full {
  margin-top: -4px;
}

@media (min-width: 720px) {
  .auth-card--register .password-meta--full {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 14px;
    align-items: center;
  }
  .auth-card--register .password-strength__text {
    text-align: right;
  }
}

.auth-card--register .password-hint {
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.35;
}

.auth-card--register .password-strength {
  display: grid;
  gap: 6px;
}

.auth-card--register .password-strength__bar {
  width: 100%;
  height: 8px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.auth-card--register .password-strength__fill {
  height: 100%;
  width: 0%;
  background: #94a3b8;
  border-radius: 999px;
  transition: width 160ms ease, background 160ms ease;
}

.auth-card--register .password-strength__text {
  font-size: 0.86rem;
  color: #475569;
  font-weight: 600;
}

.auth-card--register .password-error {
  color: #ef4444;
  font-size: 0.92rem;
  margin-top: 6px;
  display: none;
  font-weight: 600;
}

.auth-card--register .form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
}

/* Toggle SVG (botones de ojo) alineados al estilo de login */
.auth-card--register button.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  z-index: 2;
}

.auth-card--register button.toggle-password:hover {
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.14);
}

.auth-card--register button.toggle-password:active {
  transform: translateY(-50%) scale(0.98);
}

.toggle-password__icon {
  display: flex;
  align-items: center;
}


/* Lo viejo se mantiene por compatibilidad, pero el layout nuevo usa .gremio-brand */


/* Form base lo aporta IniciarSesion.css; acá solo afinamos el checkbox */


.form-group.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.form-group.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: #2563eb;
}

.form-group.checkbox label {
  margin: 0;
  color: #334155;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.25;
}

.form-group.checkbox a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-group.checkbox a:hover {
  color: #1d4ed8;
}


/* Botón y footer los aporta IniciarSesion.css */

/* --- RESPONSIVE REGISTRARSE --- */
@media (max-width: 480px) {
  .gremio-brand__logo {
    width: 60px;
    height: 60px;
  }
  .form-group.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 4px;
  }
  .form-group.checkbox label {
    font-size: 1rem;
  }
  .modal-content {
    max-width: 96vw;
    padding: 16px 6px 12px 6px;
    border-radius: 12px;
  }
  .modal-content h3 {
    font-size: 1rem;
  }
  .modal-input {
    max-width: 90vw;
    font-size: 1.02rem;
    padding: 10px 10px;
  }
  .modal-button {
    max-width: 90vw;
    font-size: 1.05rem;
    padding: 10px 0;
  }
}
