/* Table of Contents */
/* 
1. Typography
2. Defaults
3. Header
4. Login Wrapper
5. Login Form
6. Responsiveness
7. Animations
*/

/* 1. Typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

h1 {
    line-height: 1.1;
}

/* 2. Defaults */
body { 
    font-family: Poppins, sans-serif; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-flow: column nowrap;
    height: 100vh; 
    margin: 0; 
    padding: 0; 
    overflow: hidden;
}

iframe { 
    width: 100%; 
    max-width: 1200px;
    height: 100%; 
    border: none; 
}

/* 3. Header */
.header-wrapper {
    height: 80px;
    padding-top: 40px;
    background-color: #E6ECE7;
    width: 100%;
}

#header {
    height: 50px;
    background-color: #fff;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

#header .logo {
    height: 40px;
}

/* 4. Login Wrapper */
.login-wrapper {
    display: flex;
    max-width: 1000px;
}

.login-wrapper #login-card {
    width: 60%;
}

.login-wrapper img {
    width: 40%;
    margin-left: -175px;
    animation: piechart-twist 5s infinite;
}

.login-image-cover {
    background-color: #fff;
    height: 250px;
    margin-top: -250px;
    width: 200px;
    position: relative;
    right: -150px;
    bottom: -50px;
    border-radius: 0 0 25px 0;
    z-index: 1;
    float: right;
}

#login-card>p,
#login-card>h1 {
    max-width: 550px
}

p.mobile-message {
    display: none;
}

/* 5. Login Form */
#login-card {
    border-radius: 25px;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    padding: 50px 150px 50px 50px;
}

form.form-request {
    justify-content: space-between;
}

form.form-request label {
    font-size: 18px;
    text-align: center;
    line-height: 2.2;
}

.login-forms {
    display: flex;
    gap: 20px;
    z-index: 2;
    position: relative;
}

form { 
    display: flex; 
    flex-direction: column; 
    width: 300px; 
}

input { 
    margin-bottom: 10px;
    padding: 10px;
    font-size: 16px;
    border: 2px #013333 solid;
    border-radius: 10px;
}

button,
form > a { 
    padding: 10px 0; 
    font-size: 16px; 
    cursor: pointer; 
    border-radius: 10px;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    border: 2px #013333 solid;
    text-decoration: unset;
    text-align: center;
}

.btn-primary {
    color: #fff;
    background-color: #013333;
}

.btn-secondary {
    color: #013333;
    background-color: #fff;
    display: inline-block;
}

.login-image {
    max-width: 40vh;
    aspect-ratio: 1 / 1;
}

/* 6. Responsiveness */
@media only screen and (max-width: 1000px) {
    .login-wrapper {
        flex-flow: column;
        align-items: center;  
    }

    .login-wrapper #login-card {
        padding: 40px;
        width: auto;
    }

    .login-wrapper img {
        margin-left: 0;
        margin-top: -175px;
        width: 50%;
        animation: piechart-twist-mobile 10s infinite;
        z-index: -1;
    }

    #login-card>h1 {
        margin-top: 0;
    }

    .login-image-cover {
        display: none;
    }
}

@media only screen and (max-width: 690px) {
    body {
        overflow-y: auto;
    }
    
    .login-forms {
        flex-flow: column;
        align-items: center;  
    }

    .login-wrapper {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    #login-card>h1,
    #login-card>h2,
    #login-card>p {
        text-align: center;
    }

    p.mobile-message {
        display: inline;
    }

    .login-wrapper img {
        margin-top: -100px;
    }
}

/* 7. Animations */
@keyframes piechart-twist {
    0% {
        transform: rotate(2deg);
    }
    50% {
        transform: rotate(30deg);
    }
    100% {
        transform: rotate(2deg);
    }
}

@keyframes piechart-twist-mobile {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
