/* Projekt im Zuge des MultiMediaProjektes 1 im Studiengang MultiMediaTechnology an der FH Salzburg */
/* Autor: Andreas Kamm */
/* ----------------------- */

body,html{
    margin: 0;
    height: 100%;
    font-family: 'Rationale', sans-serif;
}

main.signup{
    background: radial-gradient(#417C99, #54A0C7 60%, #6CCEFF);
}

body.reset{
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

main img.background{
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

main img.container-image{
    position: absolute;
}

main{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.signup-container{
    width: 100%;
    height: 100%;
    background-image: url("../img/signup-background.webp");
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-container{
    z-index: 1;
    width: 100%;
    height: 100%;
    background-image: url("../img/login-background.webp");
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reset-container form :nth-child(3){
    margin-top: 2.5rem;
}

.reset-container .button-wrapper{
    margin-top: 1rem;
}

.reset-container{
    z-index: 1;
    width: 100%;
    height: 100%;
    background-position-y: center;
    background-position-x: center;
    background-image: url("../img/reset-background.svg");
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.remember-forgot{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 1rem;
    width: 100%;
}

.remember{
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 0.4rem;
    text-wrap: nowrap;
}

.signup-container .button-wrapper{
    margin-top: 1rem;
}

.button-wrapper{
    box-sizing: border-box;
    width: 100%;
    padding: 3px;
    background: linear-gradient(to right, #000000, #666666, #000000);
    border-radius: 10px;
}

form .button-wrapper button, dialog.message .button-wrapper button, .reset .enter-code button, dialog.logged-in .button-wrapper a, dialog.logged-in .button-wrapper button, .mail-code-container .button-wrapper button{ 
    width: 100%;
    padding: 4px 5px;
    font-family: 'Rationale', sans-serif;
    font-size: 25px;
    background-color: #6DCFFF;
    border: none;
    border-radius: 7px;
}

form .button-wrapper button:hover, dialog.message .button-wrapper button:hover, .reset .enter-code button:hover, dialog.logged-in .button-wrapper a:hover, dialog.logged-in .button-wrapper button:hover, .mail-code-container .button-wrapper button:hover{
    background-color: #54A0C7;
    transition: 0.2s ease-in-out;
}

dialog.logged-in .button-wrapper a{
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    color: black;
    text-decoration: none;
}

.enter-code{
    width: 7rem;
}

.enter-code button{
    font-size: 15px !important;
}

.input-wrapper{
    width: 100%;
    padding: 3px;
    background: linear-gradient(to right, #6CCEFF, #417C99, #6CCEFF);
    border-radius: 10px;
}

input[type="text"], input[type="password"], input[type="email"]{
    width: 100%;
    padding: 4px 5px 4px 40px;
    font-family: 'Rationale', sans-serif;
    font-size: 25px;
    border: none;
    border-radius: 7px;
    background-color: #eaeaea;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus{
    outline: none;
}

.full-width{
    width: 100%;
    display: flex;
}

.mail-message-wrapper label{
    width: unset;
}

.logo{
    width: 200px;
    height: auto;
}

.login-container a.logo-link{
    margin-top: 2rem;
}

h1{
    font-family: 'Saira Stencil One';
    font-size: 50px;
    margin: 1.5rem 0;
    text-wrap: nowrap;
}

.error-sign, .mail-sign{
    border-radius: 10px;
    padding: 1rem 1rem;
    font-size: 20px;
}

.mail-sign{
    display: flex;
    row-gap: 0.5rem;
    flex-direction: column;
    align-items: center;
}

.mail-sign p.bold{
    font-weight: bold;
}

.error-message-wrapper, .mail-message-wrapper{
    width: 100%;
}

.error-wrapper{
    position: absolute;
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    border: #990000 solid 3px;
    display: flex;
    flex-direction: column;
    margin: 1rem;
}

.mail-wrapper{
    position: relative;
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    border: #990000 solid 3px;
    display: flex;
    flex-direction: column;
    margin: 1rem;
}

.error-wrapper{
    width: 250px;
}

.loader{
    position: relative;
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    border: #990000 solid 3px;
    display: flex;
    flex-direction: column;
}

.loader video{
    width: 100px;
}

.close-error-button:hover, .close-mail-button:hover{
    cursor: pointer;
}

.close-error-button, .close-mail-button{
    background-color: transparent;
    border: none;
    position: absolute;
    right: 0;
    top: 0;
    margin-right: 0.3rem;
    margin-top: 0.3rem;
    padding: 0;
}

.close-error-button img, .close-mail-button img{
    width: 30px;
    height: auto;
}

dialog.error, dialog.mail{
    position: absolute;
    background: #4e4e4e9f;
    /* max-width: 100%;
    max-height: 100%; */
    height: auto;
    width: auto;
    border: #990000 solid;
}

.error-container, .mail-code-container{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: flex;
    height: 100%;
    width: 100%;
}

.loader-container{
    position: absolute;
    background: #4e4e4e9f;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.loader-container{
    display: none;
}

span.invisible-label{
    position: absolute;
    visibility: hidden; 
}

.error-sign p, .mail-sign p{
    margin: 0;
    text-align: center;
    display: flex;
    row-gap: 1rem;
    flex-direction: column;
    align-items: center;
}

.error-sign p :nth-child(1), .mail-sign p :nth-child(1){
    font-weight: bold;
}

.mail-message-wrapper p{
    margin: 0.5rem 0;
}

.sign-up, .sign-in{
    margin-top: 1.5rem;
    display: flex;
    row-gap: 0.3rem;
    flex-direction: column;
    align-items: center;
    background-color: #eaeaeaa1;
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    font-size: 20px;
}

.sign-up{
    margin-bottom: 2rem;
}

.sign-up p, .sign-in p{
    margin: 0;
    text-wrap: nowrap;
}

.sign-up a, .sign-in a{
    text-decoration: none;
    color: black;
}

.username{
    background: url("../img/person.svg") no-repeat left;
    background-size: 30px;
    background-position: 5px;
}

.email{
    background: url("../img/envelope.svg") no-repeat left;
    background-size: 30px;
    background-position: 5px;
}

.password{
    background: url("../img/key.svg") no-repeat left;
    background-size: 30px;
    background-position: 5px;
}

.code{
    background: url("../img/lock-open.svg") no-repeat left;
    background-size: 30px;
    background-position: 5px;
}

.passwordNew, .passwordNewRepeat{
    background: url("../img/key.svg") no-repeat left;
    background-size: 30px;
    background-position: 5px;
}

.remember-forgot{
    font-size: 20px;
}

.remember-forgot a{
    color: black;
}

.sign-up a span, .sign-in a span, .remember-forgot a{
    text-decoration: 2px #FF0000 underline solid;
    text-underline-offset: 5px;
    text-wrap: nowrap;
}

.sign-up a:hover span, .sign-in a:hover span, .remember-forgot a:hover{
    text-decoration: 2px white underline solid;
    transition: 0.2s ease-in-out;
}

.button-container
{
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
}

input[type="checkbox"]{
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #E0B300;
    background-color: #eaeaea;
    margin: 0;
    border: 1.5px solid black;
    border-radius: 0.15em;
}

input[type="checkbox"]:checked{
    border-color: black;
    background-color: #E0B300;
    color: black;
}

form{
    width: 21rem;
    row-gap: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signup form{
    width: 17rem
}

.reset form{
    width: 19rem
}

@media screen and (max-width: 570px)
{
    html, body{
        overflow-y: hidden;
    }

    .sign-up p, .sign-in p, .sign-in a, .sign-up a {
        font-size: 15px;
    }

    .sign-in a span, .sign-up a span, .remember-forgot a {
        text-decoration: 2px #FF0000 underline solid;
        text-underline-offset: 3px;
    }

    .login-container{
        background-image: url("../img/login-background-small.webp");
    }

    .signup-container{
        background-image: url("../img/signup-background-small.webp");
    }

    .reset-container{
        /* background-position-y: 8rem; */
        background-image: url("../img/reset-background-small.svg");
    }

    input[type="text"], input[type="password"], input[type="email"]{
        padding: 4px 5px 4px 30px;
        font-size: 20px;
    }
    
    .password, .username, .email, .code, .passwordNew, .passwordNewRepeat{
        background-size: 20px;
    }

    input[type="checkbox"]{
        width: 1rem;
        height: 1rem;
    }

    .logo{
        width: 150px;
        height: auto;
    }

    .reset-container form :nth-child(3) {
        margin-top: 1rem;
    }

    .login .logo{
        margin-bottom: 0.5rem;
    }


    .login-container a.logo-link{
        margin-top: 1rem;
    }

    .remember-forgot{
        font-size: 15px;
    }

    input, button{
        font-size: 20px;
    }    

    h1{
        font-size: 35px;
    }

    form{
        width: 13.5em !important;
    }

    .mail-wrapper{
        width: 15.5em !important;
    }
}