body,
html {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(
        315deg,
        rgb(3, 16, 134) 3%,
        rgba(60, 132, 206, 1) 38%,
        rgb(48, 64, 238) 68%,
        rgb(71, 132, 160) 98%
    );
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
    overflow: hidden;
}

@keyframes gradient {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Ondas */
.wave {
    background: rgb(255 255 255 / 25%);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.8;
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.9;
}

@keyframes wave {
    2% { transform: translateX(1); }
    25% { transform: translateX(-25%); }
    50% { transform: translateX(-50%); }
    75% { transform: translateX(-25%); }
    100% { transform: translateX(1); }
}

/* Estructura principal */
.container-split {
    display: flex;
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    flex-wrap: wrap;
}

/* Panel Izquierdo */
.left-panel {
    flex: 1;
    padding: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Fondo dinámico */
#fondoComunicados {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 10px;
    z-index: 0;
}

.fondo-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
}

.fondo-item.active {
    opacity: 0.25; /* ajusta transparencia */
}

/* Contenido de los comunicados encima del fondo */
.contenido-comunicados {
    position: relative;
    z-index: 3;
}

/* Panel Derecho (Login) */
.right-panel {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-container {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.logo-marca-agua {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 350px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.logo-card {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.titulo-principal {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Inputs y botones */
.form-control,
.input-group-text,
form,
.btn-login,
.form-check-label,
a {
    position: relative;
    z-index: 1;
}

.form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid #80d0ff;
    border-radius: 0;
    color: #fff;
}

.form-control::placeholder { color: #cce6ff; }

.form-control:focus {
    background: transparent;
    box-shadow: none;
    border-color: #00c3ff;
    color: #fff;
}

.input-group-text {
    background: transparent;
    border: none;
    color: #cce6ff;
}

.btn-login {
    background: linear-gradient(90deg, #0077ff, #00c3ff);
    border: none;
    color: #fff;
    font-weight: bold;
}

.btn-login:hover {
    background: linear-gradient(90deg, #0056b3, #0099cc);
}

a {
    color: #80d0ff;
    font-size: 0.9rem;
    text-decoration: none;
}

a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .container-split { flex-direction: column; }
    .left-panel { display: none; }
}
