

body{
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: var(--texto-principal); 
    display: flex;  
    justify-content: center; 
    align-items: center;  
    min-height: 100vh; 
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

/* ==============================
    CONTENEDOR PRINCIPAL
============================== */


.contenedorPrincipal{
    width: 90%;
    max-width: 400px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contenedorPrincipal ::before {
        content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
                rgba(0, 195, 126, 0.1) 0%, 
                transparent 70%);
    z-index: -1;
}


/* ==============================
    TÍTULOS Y TEXTO
============================== */
h1 {
    color: var(--texto-claro);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem; 
}

h1 ::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--acento);
    border-radius: 3px;

}
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 14px;
    display: none; /* Por defecto oculto, se muestra cuando hay contenido */
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 14px;
    display: none; /* Por defecto oculto, se muestra cuando hay contenido */
}

/* Cuando tienen contenido, se muestran */
.error-message:not(:empty) {
    display: block;
}

.success-message:not(:empty) {
    display: block;
}

/* ==============================
    FORMULARIO - LOGIN
============================== */

.grupoInput {
    position: relative;
    margin-bottom: 1.5rem;
}


.grupoInput input{
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--texto-principal);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.grupoInput input:focus { 
    border-color: var(--acento);
    box-shadow: 0 0 0 3px rgba(0, 195, 126, 0.2);
    background: rgba(255, 255, 255, 0.15);
}
/* ==============================
   ESTILOS PARA ICONOS EN INPUTS
============================== */

/* Estilo base para todos los iconos */
.grupoInput i {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--texto-secundario);
    transition: all 0.3s ease;
    z-index: 2;
}

/* Iconos izquierdos (usuario/candado) */
.grupoInput i.fa-user-tie,
.grupoInput i.fa-lock {
    left: 15px;
}

/* Icono ojo derecho */
.grupoInput i.fa-eye,
.grupoInput i.fa-eye-slash {
    right: 30px;
    left: auto; /* Anula cualquier left heredado */
    cursor: pointer;
}

/* Ajuste de padding para los inputs */
.grupoInput input {
    padding-left: 40px !important;
    padding-right: 40px !important;
    height: 45px; /* Altura consistente */
}

/* Efecto cuando el input está enfocado */
.grupoInput input:focus + i {
    color: var(--acento);
}

/*===============
    BOTONES
============================== */


.submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--acento), var(--acento-oscuro));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit:hover{
    background: linear-gradient(135deg, var(--acento-hover), var(--acento));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 195, 126, 0.4);
}


.botonRegresar {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--texto-principal);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.botonRegresar:hover {
    background: var(--acento);
    color: white;
    transform: scale(1.1);
}

/* ==============================
   EFECTOS ADICIONALES
============================== */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, 
              transparent, 
              rgba(255, 255, 255, 0.3), 
              transparent);
    margin: 2rem 0;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 480px) {
    .contenedorPrincipal {
        padding: 1.5rem;
        width: 85%;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Icono para mostrar/Ocultar Contraseña */
/* .fa-solid {

    cursor: pointer;
} */


