﻿/* Estilos para el cuerpo de la página */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: black;
    margin-top: 0;
    margin-bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    margin: 0;
}

#imagenFondo {
    margin-top: 0;
    margin-bottom: 0;
    display: none;
}

/* Centrando verticalmente el contenido */
.vertical-center {
    min-height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Contenedor centrado */
.container {
    text-align: center;
}

/* Panel de inicio de sesión */
.login-panel {
    background: rgba(37, 48, 50, 1);
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 50px;
    height: 600px;
    width: 450px;
    margin-top: 80px;
    margin-left: 200px;
    margin-bottom: auto;
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Mensaje de pie de página */
.footer-message {
    border: none;
    width: 450px;
    margin-top: 40px;
    margin-left: 200px;
    text-align: center;
}

/* Encabezado del panel */
.login-panel .panel-heading {
    margin-bottom: 40px;
}

.login-panel .panel-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
}

.login-panel .form-control {
    margin-bottom: 10px;
}

/* Botón de inicio de sesión */
.login-panel .btn {
    background-color: #1ABC9C;
    border: none;
    color: #ffffff;
    font-size: 18px;
    padding: 10px 20px;
    width: 100%;
    border-radius: 8px;
}

    .login-panel .btn:hover {
        background-color: #16A085;
    }

.login-panel .checkbox label {
    color: #ffffff;
    font-size: 14px;
}

.login-panel .alert {
    margin-top: 15px;
}

/* Estilos para el interruptor */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #5DDAE3;
}

    input:checked + .slider:before {
        transform: translateX(14px);
    }

.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

/* Media query para resoluciones menores o iguales a 720 */
@media (max-width: 1280px) {
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
    .vertical-center {
        display: flex;
        justify-content: center;
        padding-inline: 0;
    }
    .login-panel {
        width: 100%;
        width: 450px;
        min-width: 200px;
        margin: auto;
    }
    .footer-message {
        width: 100%;
        max-width: 450px;
        margin: auto;
        text-align: center;
    }
}

@media (max-width: 475px) {
    .container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    .login-panel {
        width: 100%;
        min-width: 200px;
        margin: auto;
        padding: 15px;
    }
}