﻿/* Estilos generales */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

/* Botones */
.btn {
    outline: 0;
    border: none;
    background-color: transparent;
    color: white;
    transition-duration: 0.4s;
}

    .btn:hover {
        cursor: pointer;
        border-radius: 30px;
        opacity: .30;
    }

/* Fondo de pantalla completo */
.fullscreen_bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: 50% 50%;
    background-image: url('../images/DarkBackground.jpg');
    background-repeat: no-repeat;
}

/* Formulario de inicio de sesión */
.form-signin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 330px;
    padding: 30px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

    .form-signin .form-signin-heading,
    .form-signin {
        margin-bottom: 15px;
    }

        .form-signin .form-control {
            width: 100%;
            padding: 10px;
            font-size: 18px;           
            box-sizing: border-box;
        }

        .form-signin input[type="text"],
        .form-signin input[type="password"] {
            border: 1px solid #000;
            border-radius: 5px;
            margin-top: 15px;
        }

/* Título del formulario */
.form-signin-heading {
    text-align: center;
    margin-bottom: 20px;
}

/* Contenedor */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .container.hide {
        display: none;
    }

/* Elemento flexible */
.flex-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btnLogin {
    background-color: transparent;
    border-color: ghostwhite;
    color: ghostwhite;
    cursor: pointer;
    width: 100%;
    height: 40px;
    font-weight: bold;
    margin: 1px;
    border-width: thin;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 16px;
}

/* Botones de error */
.btnError,
.btnCancel {
    background-color: transparent;
    border-color: ghostwhite;
    color: ghostwhite;
    cursor: pointer;
    width: 100%;
    max-width: 120px;
    height: 35px;
    font-weight: bold;
    margin: 5px;
    border-width: thin;
}

.ErrorBox {
    color: white;
    text-align: center;
    margin: 0 auto;
    padding: 15px;  
    border-radius: 10px;
    max-width: 320px;
}


    .ErrorBox.hide {
        display: none;
    }

    

/* Validación de errores */
.validation-summary-errors > ul > li {
    display: contents;
    text-align: center;
}

.validation-summary-errors > ul {
    padding-left: 0px;
}

/* Estilos para el switch */
.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 19px;
}

    .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;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 11px;
        width: 11px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Sliders redondos */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

/* Media Queries para pantallas pequeñas */
@media (max-width: 768px) {
    .form-signin {
        width: 90%;
        margin: 0 auto;
    }

    .btnError,
    .btnCancel {
        width: calc(50% - 10px);
        margin: 5px;
    }
}

@media (max-width: 480px) {
    .form-signin {
        width: 95%;
        padding: 10px;
    }

        .form-signin .form-control {
            font-size: 16px;
        }
}
