﻿body, html {
    height: 100%;
    margin: 0px;
    padding:0px;
}

.Img_pri {
    margin:0px;
    background-size: cover;
    background-position: center;
    height: 100%;
    position: fixed;
    width: 100%;
    z-index: -1;
}

.container {
    margin: 0px;
    padding: 0%;
    position: fixed;
    border:none;
    height:100%;
    width:100%;
}

.login-container {
    position: absolute;
    right: 0;
    top: 30%;
    height: 60%;
    width: 30%;
    background-color: rgba(230, 211, 187, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
    margin-right: 8%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
}

    .login-form h2 {
        color: #4a4948;
        padding: 10px 20px;
        font-size: 24px;
        text-transform: uppercase;
       
    }

.input-field {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-bottom: 2px solid #4a4948;
    border-radius: 5px;
    background: #ffffff;
    font-size: 16px;
}

#loginButton {
    background-color: #4a4948;
    border: none;
    color: white;
    padding: 15px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s, color 0.3s, border 0.3s;
    margin-top: 10px;
}

    #loginButton:hover {
        background-color: white;
        color: #4a4948;
        border: 2px solid #4a4948;
        transform: scale(1.05);
    }

.forgot-password {
    margin-top: 10px;
    font-size: 14px;
    color: black;
    cursor: pointer;
}

#swal2-title {
    font-size: 30px !important;
}

.custom-confirm-button {
    background-color: #4a4948 !important; /* Fondo del botón */
    color: white !important; /* Texto del botón */
    border: 1px solid #4a4948 !important; /* Borde del botón */
    padding: 15px 30px !important; /* Tamaño del botón (más grande) */
    font-size: 1.5rem !important; /* Tamaño de fuente del botón (más grande) */
    transition: all 0.3s ease; /* Transición suave */
}

    /* Efecto hover para el botón */
    .custom-confirm-button:hover {
        background-color: #ffffff !important; /* Fondo blanco al pasar el cursor */
        color: #4a4948 !important; /* Texto gris oscuro al pasar el cursor */
        border: 1px solid #4a4948 !important; /* Borde gris oscuro */
    }

/* Estilo personalizado para el cuadro de diálogo */
.custom-popup {
    font-size: 1.2rem; /* Tamaño de fuente más grande para el popup */
}



#swal2-html-container{
    font-size:20px !important;
}


.modo {
    width: 20%;
    margin-top: 90px;
    text-align: right;
    margin-left: 70%;
}

.labl_modo {
    width: 60%;
    float: left;
    margin-top: 8%;
    font-size: 20px;
    text-align: right;
    color: #f2eada;
}

#Modo_tipo {
    background-color: #333333;
    border: solid;
    color: white;
    padding: 15px;
    width: 25%;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s, color 0.3s, border 0.3s, box-shadow 0.3s;
    margin-top: 10px;
    float: right;
    margin-right: 10%;
    border-color: #f2eada;
    box-shadow: 0 0 10px rgba(242, 234, 218, 0); /* Inicialmente sin sombra */
}

    #Modo_tipo:hover {
        color: #4a4948;
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(242, 234, 218, 0.8); /* Brillo al pasar el cursor */
    }




@media (max-width: 768px) {
    .Img_pri {
        display: none;
    }

    .login-container {
        width: 100%;
        border-radius: 0;
    }
}

/*mis medias Mod Luis*/

.errorMessage {
    color: #ffffff;
    background-color: rgb(177 162 158 / 90%);
}

/*Dispositivos móviles*/
@media (max-width: 400px) {
    .modo {
        margin-left: 38% !important;
        width: 60% !important;
    }

    .login-form img {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .modo {
        margin-top: 0px;
        margin-left: 47%;
        width: 50%;
    }

    .labl_modo {
        margin-top: 5%;
    }

    body > *:not(.row) {
        background-color: #333333;
        display: block;
    }

    .login-container {
        /*background-color: #7f2841;*/
        height: 80%;
        width: 90%;
        display: flex;
        flex-direction: column;
        top: 13%;
        right: 5%;
        left: 5%;
    }

    .login-form img {
        width: 50%;
    }

    .login-form {
        width: 80%;
    }

    #loginButton {
        max-width: 280px;
    }
}

/*Dispositivos Tabletas*/
@media (min-width: 481px) and (max-width: 768px) {
    .modo {
        margin-top: 0px;
        margin-left: 57.5%;
        width: 40%;
    }

    .labl_modo {
        margin-top: 5%;
    }

    body > *:not(.row) {
        background-color: #333333;
        display: inline;
    }

    .login-container {
        /*background-color: #7f2841;*/
        height: 80%;
        width: 90%;
        display: flex;
        flex-direction: column;
        top: 13%;
        right: 5%;
        left: 5%;
    }

    .login-form img {
        width: 50%;
    }

    .login-form {
        width: 80%;
    }

    #loginButton {
        max-width: 280px;
    }
}

/*Dispositivos pantallas pequeñas, laptops*/
@media (min-width: 769px) and (max-width: 1024px) {
    .modo {
        margin-top: 72px;
        display: flex;
        margin-left: 66%;
        width: 30%;
    }

    .labl_modo {
        margin-top: 5%;
        margin-right: 5px;
        width: 56%;
    }

    .login-container {
        height: 65%;
        width: 45%;
    }

    .login-form img {
        width: 100%;
    }

    .login-form h2 {
        margin-top: 10px;
    }

    .login-form {
        width: 60%;
    }

    #loginButton {
        max-width: 280px;
    }
}

/*Dispositivos Computadoras de escritorio, pantallas grandes*/
@media (min-width: 1025px) and (max-width: 1200px) {
    .modo {
        margin-top: 72px;
        display: flex;
        margin-left: 70%;
        width: 25%;
    }

    .labl_modo {
        margin-top: 5%;
        margin-right: 5px;
        width: 56%;
    }

    .login-container {
        height: 65%;
        width: 35%;
    }

    .login-form img {
        width: 100%;
    }

    .login-form h2 {
        margin-top: 10px;
    }

    .login-form {
        width: 60%;
    }

    #loginButton {
        max-width: 280px;
    }
}

/*Dispositivos Pantallas extra-grandes*/
@media (min-width: 1201px) {
    .modo {
        margin-top: 72px;
        display: flex;
        margin-left: 72.5%;
        width: 22%;
    }

    .labl_modo {
        margin-top: 5%;
        margin-right: 5px;
        width: 56%;
    }

    .login-container {
        height: 65%;
        width: 35%;
    }

    .login-form img {
        width: 100%;
    }

    .login-form h2 {
        margin-top: 10px;
    }

    .login-form {
        width: 60%;
    }

    #loginButton {
        max-width: 280px;
    }
}

/*-----------------------------------Alturas-------------------------------*/

/* Alturas muy pequeñas (hasta 480px) */
@media (max-height: 480px) {
    .login-form {
        width: 50% !important;
        flex-flow: row wrap;
        justify-content: center;
    }

        .login-form img {
            width: 20% !important;
            margin-bottom: 5px;
        }

        .login-form h2 {
            font-size: 14px;
            padding: 5px 5px;
            margin-top: 5px;
            margin-left: 5px;
            margin-bottom: 5px;
        }

    .input-field {
        width: 80%;
        padding: 7px;
        margin: 5px 0;
        font-size: 14px;
    }

    #loginButton {
        width: 80%;
        padding: 10px;
    }

    #Modo_tipo {
        padding: 5px;
        width: 15%;
    }

        #Modo_tipo img {
            width: 10px;
        }

    .labl_modo {
        width: 70%;
        font-size: 16px;
    }

    .validation-summary-errors {
        display: none;
    }

    .errorMessage {
        font-size: 12px !important;
    }
}

/* Alturas pequeñas (481px a 600px) */
@media (min-height: 481px) and (max-height: 600px) {
    .login-form {
        width: 50% !important;
        flex-flow: row wrap;
        justify-content: center;
    }

        .login-form img {
            width: 20% !important;
            margin-bottom: 5px;
        }

        .login-form h2 {
            font-size: 14px;
            padding: 5px 5px;
            margin-top: 5px;
            margin-left: 5px;
            margin-bottom: 5px;
        }

    .input-field {
        width: 80%;
        padding: 7px;
        margin: 5px 0;
        font-size: 14px;
    }

    #loginButton {
        width: 80%;
        padding: 10px;
    }

    #Modo_tipo {
        padding: 5px;
        width: 15%;
    }

        #Modo_tipo img {
            width: 10px;
        }

    .labl_modo {
        width: 70%;
        font-size: 16px;
    }

    .validation-summary-errors {
        display: none;
    }

    .errorMessage {
        font-size: 12px !important;
    }
}

/* Altura media (601px a 800px) */
@media (min-height: 601px) and (max-height: 800px) {
    .login-form img {
        width: 50% !important;
    }

    .login-form h2 {
        font-size: 14px;
        padding: 5px 5px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .input-field {
        width: 80%;
        padding: 10px;
    }

    #loginButton {
        width: 80%;
        padding: 10px;
    }

    #Modo_tipo {
        padding: 5px;
        width: 15%;
    }

        #Modo_tipo img {
            width: 10px;
        }

    .labl_modo {
        width: 70%;
        font-size: 16px;
    }
}

/* Altura grande (801px a 1000px) */
@media (min-height: 801px) and (max-height: 1000px) {
}

/* Altura muy grande (más de 1000px) */
@media (min-height: 1001px) {
}


/*Medias de altura para posicionar correctamente el botón para cambiar modo*/

@media (min-width: 769px) and (max-height: 375px) {
    .modo {
        margin-top: 25px !important;
    }
}

@media (min-width: 769px) and (min-height: 376px) and (max-height: 480px) {
    .modo {
        margin-top: 35px !important;
    }
}

@media (min-width: 769px) and (min-height: 481px) and (max-height: 640px) {
    .modo {
        margin-top: 45px !important;
    }
}

@media (min-width: 769px) and (min-height: 851px) and (max-height: 951px) {
    .modo {
        margin-top: 82px !important;
    }
}

@media (min-width: 769px) and (min-height: 951px) and (max-height: 1051px) {
    .modo {
        margin-top: 92px !important;
    }
}

@media (min-width: 769px) and (min-height: 1051px) and (max-height: 1200px) {
    .modo {
        margin-top: 112px !important;
    }
}

@media (min-width: 769px) and (min-height: 1201px) {
    .modo {
        margin-top: 132px !important;
    }
}
