﻿body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f1f1;
    background-image: url('/Images/LoginPage.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.logoLogin {
    width: 120px;
    height: 140px;
    position: absolute; /*Position relative to the body */
    top: 0; /*lign it at the top */
    right: 0; /*Align it at the right */
    margin-right: 10px; /*Optional: add some space around the logo */
    margin-top: 5px;
}

.iconContainer {
    background-color: white;
    border-radius: 15px;
    border: solid 1px lightgrey;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
    min-width: 300px;
    height: 45%;
    min-height: 300px;
}

.linkButton {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-family: Verdana, sans-serif;
    color: black;
    background-color: transparent;
    border-style: none;
    text-decoration: underline;
}

    .linkButton:hover {
        color: grey;
    }

.logError {
    color: red;
    font-size: 13px;
    top: -100px;
    padding-bottom: 10px;
    text-align-last: center;
}

.backLoginButton {
    color: black;
    background-color: white;
    border: none;
    border-radius: 5px;
    height: 35px;
    width: 120px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    border: solid 1px #98ddca;
}

    .backLoginButton:active {
        background-color: #e1e3e3;
    }

    .backLoginButton:hover {
        background-color: #64c1a7;
        color: white;
    }

@import url("https://fonts.googleapis.com/css?family=Poppins:400,500&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

.containerLogin {
    width: 400px;
    max-width: 400px;
    padding: 20px;
}

.containerEmail {
    width: 400px;
    max-width: 400px;
    padding: 20px;
    display: table-column;
    justify-items: center;
    text-align: center;
}

.containerWelcome {
    width: 150%;
    max-width: 400px;
    top: auto;
}

.wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 450px; /* Adjust the gap value as needed */
}

.containerWelcome h1 {
    font-family: Corbel, Arial;
    padding-bottom: 20px;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    text-align: center;
}

.containerWelcome p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-family: Corbel, Arial;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

.mainText {
    padding-bottom: 20px;
}

.login-box {
    width: 100%;
}

    .login-box h1 {
        margin: 0 0 15px;
        padding: 0;
        color: #333;
        text-align: center;
        text-transform: uppercase;
        font-family: Corbel;
        text-align-last: center;
        font-size: clamp(1.3rem, 2.6vw, 1.6rem);
    }

.user-box {
    position: relative;
    margin: 0;
}

input:-webkit-autofill {
    background-color: transparent !important;
    -webkit-box-shadow: 0 0 0 1000px white inset;
}

.user-box input.autofilled ~ label {
    transform: translateY(-20px);
    font-size: 14px;
    color: #333;
}

.user-box input, textarea {
    width: 100%;
    height: 45px;
    padding: 10px 0;
    font-size: clamp(1rem, 1.5vw, 1.0rem);
    color: #333;
    margin-bottom: 30px;
    border: none;
    border-bottom: 2px solid #333;
    outline: none;
    background: transparent;
}

.user-box label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: clamp(0.9rem, 0.9vw, 1rem);
    color: #333;
    pointer-events: none;
    transition: 0.5s;
}

.user-box input:focus ~ label,
.user-box input:valid ~ label {
    transform: translateY(-20px);
    font-size: 14px;
    color: #333;
}

.user-box textarea:focus ~ label,
.user-box textarea:valid ~ label {
    transform: translateY(-20px);
    font-size: 14px;
    color: #333;
}

.logButton {
    display: inline-block;
    padding: 10px 20px;
    font-size: clamp(0.6rem, 1.7vw, 0.9rem);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: 0.5s;
    letter-spacing: 2px;
    border-radius: 7px;
    font-family: Verdana, sans-serif;
    background-color: #e6eff1;
    border-style: none;
    color: black;
}

    .logButton:hover {
        background-color: #f1f1f1;
        color: #333;
        border: none;
        transition: 0.5s;
        cursor: pointer;
    }

.canButton {
    display: inline-block;
    padding: 10px 20px;
    font-size: clamp(0.6rem, 1.7vw, 0.7rem);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: 0.5s;
    letter-spacing: 2px;
    border-radius: 7px;
    font-family: Verdana, sans-serif;
    background-color: white;
    border-style: none;
    color: black;
    top: 10px;
    border: solid 1px #e6eff1;
}

    .canButton:hover {
        background-color: #f1f1f1;
        color: #333;
        border: none;
        transition: 0.5s;
    }

a span {
    position: absolute;
    display: block;
}

.password-toggle-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

    .password-toggle-icon i {
        font-size: 18px;
        line-height: 1;
        color: #333;
        transition: color 0.3s ease-in-out;
        margin-bottom: 20px;
    }

        .password-toggle-icon i:hover {
            color: #000;
        }

.emailMsg {
    /*text-align: center;*/
    font-size: 20px;
    color: #0b6c96;
    margin-top: 15px;
}

.backToLoginButton {
    color: white;
    background-color: #0b6c96;
    border: none;
    border-radius: 5px;
    height: 35px;
    width: 120px;
    font-size: clamp(0.7rem, 1.4vw, 0.8rem);
    border: solid 1px #137fad;
    margin-top: 15px;
}

    .backToLoginButton:active {
        background-color: #e1e3e3;
    }

    .backToLoginButton:hover {
        background-color: #65a0ba;
        color: white;
    }


@media (max-width: 768px) {
    .logoLogin {
        width: 80px;
        height: 100px;
    }

    .linkButton {
        padding-right: 40px;
    }

    .wrapper {
        flex-direction: column;
        gap: 10px; /* Adjust the gap value as needed */
    }

    .containerWelcome h1 {
        padding: 10px;
    }

    .mainText {
        display: none;
    }

    .user-box input, textarea, label {
        width: 80%;
        margin-left: 30px;
    }

    .logButton {
        background-color: white;
        height: 30px;
        padding-top: 7px;
        padding-left: 11px;
        padding-right: 10px;
        margin-left: 30px;
    }

    .canButton {
        background-color: #e6eff1;
        height: 30px;
        padding-top: 7px;
        padding-left: 11px;
        padding-right: 10px;
        margin-left: 30px;
    }

    .password-toggle-icon {
        right: 45px;
    }
}

@media (max-width: 960px) {
    .wrapper {
        flex-direction: column;
        gap: 10px; /* Adjust the gap value as needed */
    }
}

@media (max-width: 1080px) {
    .wrapper {
        flex-direction: column;
        margin: 20px;
        gap: 10px; /* Adjust the gap value as needed */
    }
}

@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
    .wrapper {
        gap: 200px;
    }

    .iconContainer {
        width: 80%;
    }

    .backToLoginButton {
        height: 45px;
        width: 100%;
        font-size: clamp(1.2rem, 1.4vw, 0.8rem);
        margin-top: 20px;
        padding: 10px 20px;
    }
}

@media (min-width: 768px) and (max-width: 1366px) and (orientation: portrait) {
    .wrapper {
        gap: 150px;
    }

    .containerWelcome {
        max-width: 550px;
    }

        .containerWelcome h1 {
            font-size: clamp(2.3rem, 2.8vw, 2rem);
        }

        .containerWelcome p {
            font-size: clamp(1.5rem, 1.8vw, 1.2rem);
        }

    .containerLogin {
        width: 100%;
        max-width: 550px;
        align-self: center;
    }

        .login-box h1 {
            font-size: clamp(2.3rem, 2.6vw, 1.6rem);
        }

    .user-box input, textarea {
        height: 60px;
        font-size: clamp(1.2rem, 0.9vw, 1rem);
    }

    .user-box label {
        font-size: clamp(1.2rem, 0.9vw, 1rem);
    }

    .user-box input:focus ~ label,
    .user-box input:valid ~ label {
        font-size: 18px;
    }

    .user-box textarea:focus ~ label,
    .user-box textarea:valid ~ label {
        font-size: 18px;
    }

    .logButton {
        font-size: clamp(1.2rem, 1.7vw, 0.9rem);
        background-color: white;
    }

    .canButton {
        font-size: clamp(1.2rem, 1.7vw, 0.9rem);
        background-color: #e6eff1;
    }

    .linkButton {
        font-size: clamp(1.1rem, 1.5vw, 0.9rem);
    }

    .password-toggle-icon i {
        font-size: 25px;
    }

    .iconContainer {
        width: 70%;
    }

    .emailMsg {
        font-size: 25px;
    }

    .backToLoginButton {
        height: 45px;
        width: 100%;
        font-size: clamp(1.2rem, 1.4vw, 0.8rem);
        margin-top: 20px;
        padding: 10px 20px;
    }

    .errorText{
        font-size: 20px;
    }
}
