/**
 * GENERAL
 */
:root {
    --text-color: #555555;
    --text-color-hover: #6495ed;
    --text-color-light: rgba(255, 255, 255, .5);
}

#main-login {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

/**
 * LEFT SECTION
 */
#filler-login {
    flex-grow: 1;
    flex-shrink: 1;
    background-color: cornflowerblue;
    background-image: url('../img/bg_login.png');
    background-position: center;
    background-size: cover;
    display: grid;
    grid-template-rows: 15% 15% auto 20%;
}

#filler-login > img {
    filter: brightness(100);
    max-width: 500px;
    width: 44%;
}

.text {
    font-size: 2em;
    color: var(--text-color-light);
    line-height: 1em;
    letter-spacing: -1px;
}

#second-text {
    text-align: center;
}

#third-text {
    display: inline-block;
    justify-self: flex-end;
    margin-right: 20%;
}

/**
 * RIGHT SECTION
 */
#form-side-login {
    width: 500px;
    background-color: white !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4em;
}

#form-side-login-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 65%;
    margin-right: 10%;
}

form > div {
    margin-bottom: 1.25em;
}

#welcome-login {
    color: var(--text-color);
    font-size: 1.4em;
    text-align: center;
    margin-bottom: 2.4em;
    line-height: 1.3em;
}

#welcome-login b {
    font-size: 1.5em;
}

#form-login {
    width: 100%;
    text-align: left;
    color: var(--text-color);
}

/**
 * LABELS
 */
label, input {
    display: block;
    width: 100%;
}

label {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-color) !important;
    margin-bottom: 0.75em !important;
}

/**
 * INPUTS
 */
input[type=text], input[type=password],
input[type="text"]:focus, input[type="password"]:focus {
    padding: 1em 1em;
    height: 2em;
    border: solid 1px;
    border-radius: 5px;
    border-color: lightgray;
    box-sizing: border-box;
}

#submit-button,
input[type=submit] {
    cursor: pointer;
    font-size: 1.3em;
    border: none;
    border-radius: var(--border-radius);
    color: var(--color-light-text);
    background-color: var(--color-modal-confirm-bg);
    padding: .8em;
}

#submit-button {
    margin-top: 2.4em;
}

input[type=submit]:hover,
input[type=submit].clickedLogin,
#submit-button:hover {
    background-color: var(--color-modal-confirm-bg-dark) !important;
}

#submit-button:disabled,
input[type=submit]:disabled {
    cursor: not-allowed;
    background: var(--color-ico-disabled-bg) !important;
    color: var(--color-ico-disabled-text) !important;
    border-color: var(--color-ico-disabled-bg) !important;
}   

input:focus, textarea:focus, select:focus {
    border-color: transparent !important;
    outline: calc(2 * var(--border-width)) solid rgba(var(--pcolor-buttons-text), 1) !important;
}

form div > input {
    height: .7em;
    background: none;
    border: none;
    border-bottom: 1.5px solid var(--text-color);
    color: var(--text-color);
    font-size: 1.5em;
}

.password-div {
    display: flex;
    align-items: center;
}

.password-ico {
    margin-left: -2em;
}

.password-ico .fa-eye:hover,
.password-ico .fa-eye-slash {
    color: var(--text-color-hover);
}

/**
 * LINKS
 */
#below-form {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5em;
}

#below-form > span {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: bold;
    color: var(--text-color-hover);
}

#below-form > span:hover {
    color: var(--color-modal-confirm-bg-dark);
}

#terms-privacy  {
    margin-top: 6em;
    color: var(--text-color);
}

#terms-privacy > span {
    cursor: pointer;
    margin-left: var(--dl-col-padding-h-half);
    margin-right: var(--dl-col-padding-h-half);
}

#terms-privacy > span:hover {
    color: var(--text-color-hover);
}

#extra-link {
    margin-top: .8em;
}

#extra-link > a {
    color: var(--text-color-hover);
}

#extra-link > a:hover {
    color: var(--color-modal-confirm-bg-dark) !important;
}

/**
 * LANGUAGE ICONS
 */
#languages {
    margin-bottom: 1.5em;
}

.lang {
    width: 24px;
    height: 24px;
    border-radius: 100%;
    margin-left: .25em;
    margin-right: .25em;
    border: solid 2px transparent;
}

.lang:hover {
    border-color: var(--text-color-hover);
}

/**
 * MESSAGES
 */
#message-login {
    text-align: center;
    margin-bottom: 15px;
    margin-left: 0;
    font-weight: bold;
}

#message-login > .content-msg {
    padding: var(--margin-blocks-vert-half) var(--padding-inside-horiz)
}

#caps-warning-message {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    color: var(--color-warning-message-text);
    padding-top: .8em;
}

#caps-warning-message i {
    margin-right: .5em;
}

/**
 * RESET EMAIL
 */
#form-side-email-column {
    width: 38.5%;
    max-width: 500px;
    min-width: 300px;
    background-color: white !important;
    justify-content: center;
    align-items: center;
    padding: 0 4em;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

#reset-email-sent {
    color: var(--text-color);
    font-size: 1.4em;
    text-align: center;
    margin-bottom: 1em;
    line-height: 1.3em;
}

#reset-email-img {
    width: 40px;
    margin-bottom: 20px;
}

.forgot-pass-submsg {
    color: var(--text-color);
    font-size: 1.4em;
}

/**
 * SIDE LOGO
 */
#side-logo {
    display: none;
}

/* Remove default browser background colors */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/**
 * RESPONSIVE
 */
@media only screen and (min-width: 1501px) {
    #form-side-login {
        background-color: forestgreen;
    }   
    .text {
        font-size: 3em;
    }
    #first-text {
        margin-left: 6%;
        align-self: flex-end;
        margin-bottom: 1%;
    }
    #second-text {
        align-self: center;
        justify-self: end;
        margin-right: 6%;
    }
    #filler-login > img {
        width: 44%;
        align-self: center;
        justify-self: center;
        margin-right: 11%;
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 1500px) {
    #form-side-login {
        background-color: yellowgreen;
    }   
    .text {
        font-size: 2.5em;
    }
    #first-text {
        margin-left: 6%;
        align-self: flex-end;
        margin-bottom: 1%;
    }
    #second-text {
        align-self: center;
        justify-self: end;
        margin-right: 6%;
    }
    #filler-login > img {
        width: 52%;
        align-self: center;
        justify-self: center;
        margin-right: 11%;
    }
}


@media only screen and (max-width: 1200px) {
    #form-side-login {
        background-color: darkturquoise;
    }   
    .text {
        font-size: 2.3em;
    }
    #filler-login > img {
        width: 65%;
    }
}

@media only screen and (max-width: 992px) {
    #form-side-login {
        background-color: darkgoldenrod;
    } 
    .text {
        font-size: 2.5em;
    }
    #third-text {
        align-self: center;
    }
    #filler-login > img {
        width: 80%;
        margin-right: 7%;
        margin-left: 3%;
    }
    #filler-login {
        grid-template-rows: 17% 22% auto 32%;
    }
    #form-side-login-column {
        width: 80%;
    }
}

@media only screen and (max-width: 768px) {
    #form-side-login {
        background-color: pink;
    }  
    .text {
        font-size: 2.3em;
    }
    #third-text {
        font-size: 2em;
    }
    #filler-login > img {
        width: 100%;
        margin-bottom: 16%;
        margin-right: 0;  
    }
    #filler-login {
        grid-template-rows: 18% 22% auto 28%;
    }
    #form-side-login-column {
        width: 80%;
    }
}


@media only screen and (max-width: 599px) {
    #form-side-login {
        background-color: powderblue;
        width: 100%;
        max-width: unset;
        padding: 0 10%;
    }
    #filler-login {
        display: none;
    }
    #form-side-login-column {
        margin-right: 0;
        max-width: 350px;
        width: 100%;
    }
    #side-logo {
        display: inline-block;
        background-image: url('../img/logo-andsoft.svg');
        width: 70%;
        background-size: contain;
        height: 150px;
        background-repeat: no-repeat;
        background-position-y: bottom;
        margin-bottom: 4em;
    }
}

@media only screen and (min-width: 1200px) {
    #filler-login {
        background-image: url('../img/bg_login@2x.png');
    }
}