* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    background-image: url(/assets/background-abstract.jpg);
    background-position: top left;
    background-size: 200% 400%;
    backdrop-filter: blur(150px);
    background-repeat: repeat;
    height: 100vh;
    justify-content: center;
    animation: onlygradientSpin 20s linear infinite;
    display: flex;
    flex-direction: column;
}

.navbar {
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 10;
    display: flex;
    gap: 1rem;
    padding: 10px;
}

.back {
    justify-content: center;
    align-items: center;
    display: flex;
    background-color: #0ff;
    border-radius: 25px;
    padding: 5px 10px;
}

.navbar .back p {
    color: #002944;
}

.back i {
    font-size: 1.5rem;
    color: #002944;
}

.card-container {
    display: flex;
    width: 90%;
    min-height: 680px;
    max-width: 1200px;
    margin: auto;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 0 25px #0ff;
    background-color: #ffffff;
    transition: all 0.7s ease-in-out;
    background-color: #002944;
    color: #0ff;
    align-items: center;
    justify-content: center;
}

.card-container p {
    font-family: "Poppins";
    font-size: 15px;
    font-weight: 300;
}

.card-image {
    flex: 1 1 50%;
    height: 100%;
    overflow: hidden;
    position: relative;
    justify-content: center;
    align-items: center;
    transition: 0.7s;
    z-index: 1;
}

.card-container.animate .card-image{
    flex: 1 1 0;
}

.card-container.animate .form-part{
    flex: 1 1 100%;
}

.card-container.animate .text-row{
    opacity: 0;
}

.card-container.reverse{
    flex-direction: row-reverse;
}

.card-image .text-area{
    position: absolute;
    justify-content: center;
    align-items: center;
    z-index: 1;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    backdrop-filter: brightness(0.8);
    transition: 0.5s ease-in-out;
}

.card-image:hover .text-area{
    backdrop-filter: brightness(0.6);
}

.text-area .text-row{
    width: 90%;
    align-items: center;
    margin: auto;
    justify-content: center;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    gap: 10px;
}

.text-row h2{
    font-family: "Poppins";
    font-size: 2rem;
    font-weight: 800;
    color: #0ff;
    text-shadow: 1px 1px 3px #002944;
    transform: translateY(0) scale(1);
    transition: 0.5s ease-in-out;
    animation: fadeDown3 1.2s;
}

.card-image:hover .text-row h2{
    text-shadow: 0 0 5px #002944;
    transform: translateY(-20%) scale(1.05);
}

.text-row p{
    font-family: "Poppins";
    font-size: 1rem;
    font-weight: 400;
    color: #0ff;
    text-shadow: 1px 1px 3px #002944;
    transform: translateY(0) scale(1);
    transition: 0.5s ease-in-out;
    animation: fadeDown2 1.2s;
}

.card-image:hover .text-row p{
    text-shadow: 0 0 5px #002944;
    transform: translateY(-20%) scale(1.05);
}

.text-row button{
    font-family: "Poppins";
    font-size: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border: 1px solid #0ff;
    padding: 3px 30px;
    color: #0ff;
    border-radius: 50px;
    transition: 0.3s ease-in-out;
    background-color: rgba(0, 41, 68, 0.6);
}

.text-row button:hover{
    background-color: #0ff;
    color: #002944;
    box-shadow: 0 0 15px #cbffff;
}

.hide-text-768{
    display: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: 0.5s ease-in-out;
    transform: scale(1.05);
}

.card-image:hover img{
    transform: scale(1);
}

.form-part {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 10px;
    transition: 0.7s;
    animation: slideFromLeft 1.5s;
}

.form-part .sign-card {
    display: flex;
    gap: 5px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.form-part .sign-card h1 {
    font-family: "Montserrat";
    font-size: 2rem;
    font-weight: 800;
    color: #0ff;
}

.form-part .sign-card img{
    width: 70px;
    background-color: #cbffff;
    padding: 5px;
    border-radius: 50%;
}

.form-part .btn-sign-up {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-sign-up button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border: 1px solid #0ff;
    width: 100%;
    padding: 5px 10px;
    border-radius: 50px;
    color: #0ff;
    transition: 0.3s ease-in-out;
    background-color: #002944;
}

.btn-sign-up button:hover {
    border: 1px solid #002944;
    color: #002944;
    background-color: #cbffff;
}

.btn-sign-up button p {
    font-size: 15px;
    font-weight: 200;
}

.btn-sign-up button i {
    font-size: 20px;
}

.btn-sign-up button img {
    width: 20px;
}

.form-part form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
}

.form-part form div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.form-part form div label {
    font-family: "Poppins";
    font-size: 15px;
}

.form-part form div input {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 5px 10px;
    border-radius: 50px;
    width: 100%;
    outline: none;
    transition: 0.5s ease-in-out;
}

.form-part form div input::placeholder {
    font-family: "Poppins";
    font-size: 15px;
}

.form-part form div input:focus {
    border: 1px solid #cbffff;
    box-shadow: 0 0 10px #cbffff;
}

.form-part form a{
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border: 1px solid #0ff;
    width: 100%;
    padding: 5px 10px;
    color: #0ff;
    transition: 0.3s ease-in-out;
    background-color: #002944;
}

.form-part form a:hover{
    border: 1px solid #002944;
    color: #002944;
    background-color: #0ff;
    border-radius: 50px;
}


@media only screen and (max-width: 768px){
    body{
        height: auto;
    }
    .card-container{
        flex-direction: column;
        min-height: 100vh;
        width: 70%;
        transition: 0.7s;
        overflow: hidden;
    }

    .form-part{
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        flex: 1 1 100%;
        animation: slideFromBot 1.5s;
    }
    .card-image{
        display: none;
    }

    .sign-card{
        top: 0;
        flex-direction: column-reverse;
        align-items: flex-start;
        justify-content: center;
        text-align: center;
    }

    .hide-text-768{
        display: flex;
        flex-direction: column;
    }

    #switch-to-login-768{
        text-decoration: underline;
        color: #cbffff;
    }

    #switch-to-login-768{
        text-decoration: underline;
        color: #cbffff;
    }

    .logo-img{
        display: flex;
        justify-content: center;
        transition: 0.7s;
        align-items: center;
    }

    .logo-img img{
        transition: 0.7s;
        z-index: 1;
    }

    .logo-img.animate img{
        transform: translateY(50%);
        width: 90%;
        backdrop-filter: brightness(0.5);
    }

    .opc{
        opacity: 1;
        transition: 0.5s;
    }

    .opc.animate{
        opacity: 0;
    }
}