@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css?family=Bungee");

:root {
    --header-height: 56px;

    /*========== Colors Light Mode ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(195, 100%, 30%);
    --link-color: hsl(195, 87%, 65%);
    --hackadia-color: hsl(219, 87%, 65%);
    --gradient-color: linear-gradient(90deg,
    hsl(210, 55%, 20%),
    hsl(192, 62%, 25%));
    --title-color: hsl(210, 52%, 20%);
    --white-color: #fff;
    --body-color: hsl(210, 55%, 85%);
    --body-color-alpha: rgba(16, 16,19, 0.5);

    --text-color: #fff;
    --text-alt-color: #c2c2c2;
    --text-superalt-color: #787878;
    --background: #101013;
    --secondary-color: #1c1c1f;
    --area: #242427;
    --area-alt: #2f2f30;
    --main-theme: #901d35;
    --border: #3A3A3AFF;

    /*========== Colors Dark Mode ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color-dark: hsl(195, 100%, 70%);
    --link-color-dark: hsl(195, 87%, 65%);
    --hackadia-color-dark: hsl(219, 87%, 65%);
    --gradient-color-dark: linear-gradient(90deg,
    hsl(210, 55%, 70%),
    hsl(192, 62%, 75%));
    --title-color-dark: hsl(210, 52%, 70%);
    --text-color-dark: hsl(210, 24%, 85%);
    --white-color-dark: #fff;
    --body-color-dark: rgb(16, 16,19);
    --body-color-alpha-dark: rgba(16, 16,19, 0.8);
    --body-color-alpha-dark2: rgba(0, 32, 37, 0.8);

    /*========== Font and typography ==========*/
    /*8px = 0.5rem | 16px = 1rem ...*/
    --body-font: "Poppins", sans-serif;
    --second-font: "Lora", serif;
    --biggest-font-size: 36px;
    --normal-font-size: 15.008px;
    --small-font-size: 13.008px;

    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

.light-theme {
    --text-color: #000;
    --text-alt-color: #555;
    --text-superalt-color: #787878;
    --background: #f7f7f7;
    --secondary-color: #e1e1e1;
    --main-theme: #901d35;
    --area: #dcdcdc;
    --area-alt: #b6b6b6;
    --border: #c2c2c2FF;
}

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

body,
input {
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
}
.container {
    position: relative;
    width: 100%;
    background: var(--background);
    color: var(--text-alt-color);
    min-height: 100vh;
    overflow: hidden;
}

.forms-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.signin-signup {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    left: 75%;
    width: 50%;
    transition: 1s 0.7s ease-in-out;
    will-change: transform;
    display: grid;
    grid-template-columns: 1fr;
    z-index: 5;
}

.alphadome{
    color: var(--main-theme);
    font-family: "Bungee", cursive;
}

form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0px 80px;
    transition: all 0.2s 0.7s;
    will-change: transform;
    transform: translateZ(0);
    overflow: hidden;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

form.sign-up-form {
    opacity: 0;
    z-index: 1;
}

form.sign-in-form {
    z-index: 2;
}

.title {
    font-size: 35.2px;
    color: var(--text-color);
    margin-bottom: 0.625rem;
}

.input-field {
    max-width: 23.75rem;
    width: 100%;
    background: var(--secondary);
    border: 0.0625rem solid var(--border);
    margin: 0.625rem 0;
    height: 3.4375rem;
    border-radius: 3.4375rem;
    display: grid;
    grid-template-columns: 15% 85%;
    padding: 0 6.4px;
    position: relative;
}

.input-field i {
    text-align: center;
    line-height: 3.4375rem;
    color: var(--text-color);
    transition: 0.5s;
    will-change: transform;
    transform: translateZ(0);
    font-size: 17.6px;
}

.input-field input {
    background: none;
    outline: none;
    border: none;
    line-height: 1;
    font-weight: 600;
    font-size: 17.6px;
    color: var(--text-alt-color);
}

.input-field input::placeholder {
    color: #aaa;
    font-weight: 500;
}

.social-text {
    padding: 11.2px 0;
    font-size: 16px;
    color: #fff;
}

.social-media {
    display: flex;
    justify-content: center;
}

.social-icon {
    height: 2.875rem;
    width: 2.875rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 7.2px;
    color: #333;
    border-radius: 50%;
    border: 0.0625rem solid #333;
    text-decoration: none;
    font-size: 17.6px;
    transition: 0.3s;
    will-change: transform;
    transform: translateZ(0);
}

.social-icon:hover {
    color: #4481eb;
    border-color: #4481eb;
}

.btn {
    width: 9.375rem;
    background-color: var(--main-theme);
    border: 0.125rem solid var(--main-theme);
    outline: none;
    height: 3.0625rem;
    border-radius: 3.0625rem;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0.625rem 0;
    cursor: pointer;
    transition: 0.5s;
    will-change: transform;
    transform: translateZ(0);
}

.btn:hover {
    background-color: transparent;
    border: 0.125rem solid var(--main-theme);
    backdrop-filter: blur(1.25rem);
}

.panels-container {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.left-panel .container{
}

.container:before {
    content: "";
    position: absolute;
    height: 125rem;
    width: 125rem;
    top: -10%;
    right: 48%;
    transform: translateY(-50%) translateZ(0);
    background: var(--secondary);
    transition: 1.8s ease-in-out;
    will-change: transform;
    border-radius: 50%;
    z-index: 6;
}

.image {
    width: 100%;
    transition: transform 1.1s ease-in-out;
    transition-delay: 0.4s;
    will-change: transform;
    transform: translateZ(0);
}

.panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-around;
    text-align: center;
    z-index: 6;
}

.left-panel {
    pointer-events: all;
    padding: 48px 17% 32px 12%;
}

.right-panel {
    pointer-events: none;
    padding: 48px 12% 32px 17%;
}

.panel .content {
    color: var(--text-color);
    transition: transform 0.9s ease-in-out;
    transition-delay: 0.6s;
    will-change: transform;
    transform: translateZ(0);
}

.panel h3 {
    font-weight: 600;
    line-height: 1;
    font-size: 24px;
}

.panel p {
    font-size: 15.2px;
    padding: 11.2px 0;
}

.btn.transparent {
    margin: 0;
    background: none;
    border: 0.125rem solid var(--text-alt-color);
    color: var(--text-alt-color);
    width: 8.125rem;
    height: 2.5625rem;
    font-weight: 600;
    font-size: 12.8px;
}

.btn.transparent:hover{
    background-color: #fff;
    border: 0.125rem solid #fff;
    color: #2e3a4a;
}

.right-panel .image,
.right-panel .content {
    transform: translateX(50rem) translateZ(0);
    will-change: transform;
}

/* ANIMATION */

.container.sign-up-mode:before {
    transform: translate(100%, -50%) translateZ(0);
    right: 52%;
    will-change: transform;
}

.container.sign-up-mode .left-panel .image,
.container.sign-up-mode .left-panel .content {
    transform: translateX(-50rem) translateZ(0);
    will-change: transform;
}

.container.sign-up-mode .signin-signup {
    left: 25%;
}

.container.sign-up-mode form.sign-up-form {
    opacity: 1;
    z-index: 2;
}

.container.sign-up-mode form.sign-in-form {
    opacity: 0;
    z-index: 1;
}

.container.sign-up-mode .right-panel .image,
.container.sign-up-mode .right-panel .content {
    transform: translateX(0%) translateZ(0);
    will-change: transform;
}

.container.sign-up-mode .left-panel {
    pointer-events: none;
}

.container.sign-up-mode .right-panel {
    pointer-events: all;
}

@media (max-width: 54.375rem) {

    .centered{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .container {
        min-height: 50rem;
        height: 100vh;
    }

    .signin-signup {
        width: 100%;
        top: 95%;
        transform: translate(-50%, -100%);
        transition: 1s 0.8s ease-in-out;
    }

    .signin-signup,
    .container.sign-up-mode .signin-signup {
        left: 50%;
    }

    .panels-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 2fr 1fr;
    }

    .panel {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 40px 8%;
        grid-column: 1 / 2;
    }

    .right-panel {
        grid-row: 3 / 4;
    }

    .left-panel {
        grid-row: 1 / 2;
    }

    .image {
        width: 12.5rem;
        transition: transform 0.9s ease-in-out;
        transition-delay: 0.6s;
    }

    .panel .content {
        padding-right: 15%;
        transition: transform 0.9s ease-in-out;
        transition-delay: 0.8s;
    }

    .panel h3 {
        font-size: 19.2px;
    }

    .panel p {
        font-size: 11.2px;
        padding: 8px 0;
    }

    .btn.transparent {
        width: 6.875rem;
        height: 2.1875rem;
        font-size: 11.2px;
    }

    .container:before {
        width: 93.75rem;
        height: 93.75rem;
        transform: translateX(-50%);
        left: 30%;
        bottom: 68%;
        right: initial;
        top: initial;
        transition: 2s ease-in-out;
    }

    .container.sign-up-mode:before {
        transform: translate(-50%, 100%);
        bottom: 32%;
        right: initial;
    }

    .container.sign-up-mode .left-panel .image,
    .container.sign-up-mode .left-panel .content {
        transform: translateY(-18.75rem);
    }

    .container.sign-up-mode .right-panel .image,
    .container.sign-up-mode .right-panel .content {
        transform: translateY(0rem);
    }

    .right-panel .image,
    .right-panel .content {
        transform: translateY(18.75rem);
    }

    .container.sign-up-mode .signin-signup {
        top: 5%;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 35.625rem) {
    form {
        padding: 0 24px;
    }

    .image {
        display: none;
    }

    .panel .content {
        padding: 8px 16px;
    }

    .container {
        padding: 24px;
    }

    .container:before {
        bottom: 72%;
        left: 50%;
    }

    .container.sign-up-mode:before {
        bottom: 28%;
        left: 50%;
    }
}