/* -------------------------------
  ESTILOS UNIFICADOS PARA FORMULARIOS DE LOGIN Y REGISTRO 
  -------------------------------*/ 
.contenedor-login, .contenedor-registro {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: rgba(26, 26, 31, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #000000;
}

.formulario-ajax h2 {
    color: #00B4FF;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.formulario-ajax h2 i {
    margin-right: 10px;
}

.campo-formulario {
    margin-bottom: 20px;
}

.campo-formulario label {
    display: block;
    margin-bottom: 8px;
    color: #4DFF4D;
    font-weight: 600;
}

.campo-formulario label i {
    width: 20px;
    text-align: center;
}

.campo-formulario input {
    width: 93%;
    padding: 12px 15px;
    background-color: rgba(39, 39, 58, 0.5);
    border: 1px solid #333;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
}

.campo-formulario input:focus {
    border-color: #4DFF4D;
    box-shadow: 0 0 0 2px rgba(77, 255, 77, 0.2);
    outline: none;
}

.campo-formulario small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 0.8rem;
}

.campo-formulario small strong {
    color: #00B4FF;
    font-weight: 600;
}

/* -------------------------------
   Barra de fortaleza de contraseña
   Estilo solo para el texto de fortaleza
   -------------------------------*/ 
#textoFortaleza {
    display: block;
    font-size: 0.8rem;
    color: #666; 
    margin-top: 4px;
}

#textoFortaleza.debil {
    color: #e74c3c;
}

#textoFortaleza.moderada {
    color: #f39c12; 
}

#textoFortaleza.fuerte {
    color: #2ecc71;
}

/* -------------------------------
  Mantener el estilo del texto de ayuda pequeño
  -------------------------------*/ 
.campo-formulario small {
    display: block;
    font-size: 0.75rem;
    color: #777;
    margin-top: 4px;
    line-height: 1.4;
}

/* -------------------------------
  Botón de acción
  -------------------------------*/ 
.boton-accion {
    width: 100%;
    padding: 12px;
    background-color: #003ffd;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.boton-accion:hover {
    background-color: #3a5bbf;
}

.boton-accion i {
    margin-right: 8px;
}

/* -------------------------------
   Respuesta del formulario
   -------------------------------*/ 
#respuesta-formulario {
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

#respuesta-formulario.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

#respuesta-formulario.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid #F44336;
}

/* -------------------------------
   Efectos de carga
   -------------------------------*/ 
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* -------------------------------
   Responsive
   -------------------------------*/ 
@media (max-width: 600px) {
    .contenedor-login, .contenedor-registro {
        margin: 20px 15px;
        padding: 20px;
    }
    
    .formulario-ajax h2 {
        font-size: 1.5rem;
    }
    
    .campo-formulario input {
        width: 90%;
    }
}