/* ----------  FONTS ---------- */   

@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700');

/* ------------------------------ GLOBAL ------------------------------ */  

* {
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;    
}

html { width: 100%; height: 100%; overflow-x: hidden; }                                 
body { width: 100%; margin: 0; overflow-x: hidden; }

.page_container {
    display: grid;
    max-width: 100vw;
    height: 100vh;
    background: #520000;
    background-image: linear-gradient(#d02020, #520000);
    background-image: linear-gradient( rgb(103 58 183 / 94%), rgb(28 0 79 / 94%)),url("../../images/slider_images/index_20.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ------------------------------ LOGIN DIALOG ------------------------------ */

.login_dialog {
    display: grid;
    justify-content: center;
    align-content: center;
    z-index: 1;    

}

.login_logo {
    padding: 0 0 10px 0;
    margin: 0 auto;
    text-align: center;
}

.login_logo img { width: 240px; }

.login_title { 
    font-family: 'Montserrat', sans-serif;
    line-height: 100%;
    margin: 15px 0 0 0;
    font-size: 20px;        
    font-weight: 500; 
    color: #8a0000; 
    text-align: center; 
}

#error_msg { 
    display: none;
    position: absolute;
    width: 370px;
    background: #ffeeed;
    border-style: solid;
    border-width: 1px; 
    border-color: #F44336;
    border-radius: 5px;
    box-shadow: 2px 2px 10px #00000040;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500; 
    text-align: center;
    color: #F44336;  
    margin-top: -45px;
    margin-left: -25px;
    /* margin-bottom: 6px; */
    padding: 11px;
}

#error_msg.error_msg_warning {
    background: #fff8dc;
    border-color: #d8a100;
    color: #9c6b00;
}

.login_options { 
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400; 
}

/* ------------------------------ LOGIN ------------------------------ */

    /* ----.login_form ---- */

    .login_form fieldset {
        width: 420px;
        padding: 35px 50px 35px 50px;
        background: #ffffff;
        border-style: solid;
        border-width: 1px; 
        border-color: #ededed;
        border-radius: 7px;
        box-shadow: 2px 2px 25px #00000021;
    }

    .login_form input:focus,
    .login_form button:focus{
        outline: none !important;
        border:1px solid #8a0000;
    }

    .login_form label {
        display: block;
        font-family: 'Montserrat', sans-serif;
        color: #676767; 
        font-size: 14px;
        font-weight: 400; 
        line-height: 150%;
        text-align: left; 
        margin: 8px 0 -3px 0px;
    }

    .login_form input {    
        width: 100%;
        background: #fff7f7; 
        font-family: 'Montserrat', sans-serif;
        font-size: 15px;
        color: #8a0000;
        border-style: solid;
        border-width: 1px; 
        border-width: 1px 1px 1px 1px; 
        border-color: #dedede;  
        padding: 10px;
        margin: 9px 0 1px 0;
        border-radius: 4px;
    }

    .login_form input:focus {
        border-style: solid;
        border-width: 1px 1px 1px 4px; 
        border-color: #dedede #dedede #dedede #8a0000 !important;  
        background-color: #fff7f7;
        margin: 9px 0px 1px 0px;
    }

    /* Change text in autofill textbox */
    input:-webkit-autofill {
        -webkit-text-fill-color: #8a0000 !important;
        -webkit-box-shadow: 0 0 0 30px #fff7f7 inset !important;
        box-shadow: 0 0 0 30px #fff7f7 inset !important;
    }

    input:-webkit-autofill::first-line {
        font-family: 'Montserrat', sans-serif;
        font-size: 15px;
    }

    .login_button {   
        display: block;     
        margin: 33px auto 0 auto;
        -webkit-transition: all .2s ease-in;
           -moz-transition: all .2s ease-in;
            -ms-transition: all .2s ease-in;
             -o-transition: all .2s ease-in;
                transition: all .2s ease-in;
    }

.login_form button {
        cursor: pointer;
        width: 200px;
        background-color: #8a0000;
        border-radius: 4px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        font-size: 15px; 
        color: #ffffff;
        padding: 10px 14px 10px 14px;
        border:1px solid #8a0000;
    }

    .login_form button:hover {
        background: #580000;
        border:1px solid #580000;
        color: #fff;  
    }

    .login_form.is_submitting input,
    .login_form.is_submitting a.login_options {
        pointer-events: none;
    }

    .login_button.is_submitting {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        background: #ababab !important;
        border-color: #ababab !important;
        cursor: wait !important;
    }

    .login_spinner {
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255, 255, 255, 0.35);
        border-top-color: #ffffff;
        border-radius: 50%;
        animation: login_spinner 0.7s linear infinite;
    }

    @keyframes login_spinner {
        to {
            transform: rotate(360deg);
        }
    }

/* ---------------------------------------- RESOLUTION < 525px ---------------------------------------- */

@media screen and (max-width: 525px) {
    
    .login_form fieldset {
        width: 320px;
        padding: 30px 30px 30px 30px;
    }

    .login_logo {
        padding: 0 0 10px 0;
        margin: 0 auto;
        text-align: center;
    }
    
    .login_logo img { width: 200px; }
    
    .login_title { 
        font-family: 'Montserrat', sans-serif;
        line-height: 90%;
        margin: 5px 0 0 0;
        font-size: 18px;        
    }

    .login_button {   
        margin: 20px auto 0 auto;
    }
}

/* this will only apply to Webkit browsers like Chrome */
@media screen and (-webkit-min-device-pixel-ratio:0) {

    input[type="password"] {
       -webkit-text-stroke-width: 2px;
       -webkit-text-stroke-color: #8a0000;
       letter-spacing: 4px;
    }

}
