﻿.modalPrincipal {
    display: none;
    opacity: 0;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(1px);
    align-items: center;
    justify-content: center;
    transition: opacity .3s ease-in-out, backdrop-filter .3s;
}
.modalPrincipal:has(.contentModal:hover){
    backdrop-filter:blur(15px);
}
.modalPrincipal.show {
    display: flex;
    opacity: 1;
}

.contentModal {
    position: relative;
    display: flex;
    padding: 15px;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    max-width: 450px;
    max-height: 98vh;
    overflow-y: auto;
    width: 95%;
}
#cuerpoModal {
    width: 100%;
    height: 100%;
}
.contentModal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: rgba(60, 60, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    z-index: -1;
    transition: background-color 0.4s ease-out, box-shadow 0.4s ease-out;
}

.contentModal:hover {
    filter: drop-shadow(0 0 10px #000000);
}
.contentModal:hover .modalPrincipal {
    backdrop-filter: blur(0px);
}
.contentModal:hover::before {
    background-color: rgba(60, 60, 60, 0.95);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
}

.cierreModal {
    color: #f1f1f1;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: 200;
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s ease;
    cursor: pointer;
}
.cierreModal:hover,
.cierreModal:focus {
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

.login-title {
    font-size: 1.8em;
    font-weight: 700;
    /* Color de título claro */
    color: #f1f1f1; 
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Estilo Base del Input (Fondo Oscuro) */
.form-group input {
    width: 100%;
    padding: 15px 10px 5px 10px; 
    font-size: 1em;
    background-color: #4f4f4f; 
    color: #ffffff; 
    border: 1px solid #666; 
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Estilo Base de la Etiqueta (Texto Gris Claro) */
.form-group label {
    position: absolute;
    top: 25%; 
    
    left: 10px;
    color: #aaaaaa;
    transition: transform 0.2s, font-size 0.2s, top 0.2s;
    pointer-events: none;
    transform-origin: left top;
}


/* Etiqueta al ENFOCAR (debe seguir yendo arriba) */
.form-group input:focus + label {
    top: 5px;
    font-size: 0.75em; 
    transform: translateY(-50%);
    color: #00bcd4; 
    background-color: #4f4f4f; 
    padding: 0 4px;
}

/* Etiqueta SIEMPRE Flotante si hay contenido (debe seguir yendo arriba) */
.form-group input:not(:placeholder-shown) + label { 
    top: 5px;
    font-size: 0.75em; 
    transform: translateY(-50%);
    color: #aaaaaa; 
    background-color: #4f4f4f; 
    padding: 0 4px;
}

.login-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
    color: #aaaaaa;
}

.login-link a {
    color: #00bcd4;
    text-decoration: none;
    font-weight: 600;
}

.alert {
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.9em;
}

.alert-danger {
    background-color: #633;
    color: #ffcccc;
    border: 1px solid #993333;
}