@import url(
    'https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&display=swap'
);


/* =========================
   RESET
========================= */

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


body {
    font-family: "Inter", sans-serif;
}


/* =========================
   AUTH PAGE
========================= */

.auth-page {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    /* padding: 40px 20px; */

    background:

        radial-gradient(
            circle at top left,
            rgba(54, 92, 125, 0.12),
            transparent 40%
        ),

        #f7f6f2;

}


/* =========================
   MAIN CONTAINER
========================= */

.auth-container {
    width: 100%;
    min-height: 100vh;

    background: #ffffff;

    position: relative;
    overflow: hidden;

    border-radius: 0;
    box-shadow: none;
}


/* =========================
   FORM
========================= */

.auth-container form {
    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    padding: 0 80px;

    height: 100%;
}

.auth-container h1 {
    font-family: "DM Serif Display", serif;

    font-size: clamp(36px, 4vw, 55px);

    font-weight: 400;

    color: #1f2933;

    margin-bottom: 12px;
}


.auth-subtitle {

    font-size: 14px;

    color: #7a7f87;

    text-align: center;

    line-height: 1.7;

    margin-bottom: 22px;

}


/* =========================
   INPUT
========================= */

.auth-container input {
    width: 100%;
    max-width: 430px;

    border: 1px solid #e4e5e7;
    background: #fafafa;

    margin: 8px 0;
    padding: 15px 18px;

    font-size: 14px;

    border-radius: 10px;

    outline: none;

    transition: 0.25s;
}


.auth-container input:focus {

    border-color: #243447;

    background: #ffffff;

    box-shadow:

        0 0 0 3px rgba(36, 52, 71, 0.08);

}


/* =========================
   BUTTON
========================= */

.auth-container button {

    background: #1f2933;

    color: #ffffff;

    font-size: 12px;

    padding: 13px 42px;

    border: none;

    border-radius: 8px;

    font-weight: 600;

    letter-spacing: 0.6px;

    text-transform: uppercase;

    margin-top: 16px;

    cursor: pointer;

    transition: 0.25s;

}


.auth-container button:hover {

    background: #34495e;

    transform: translateY(-2px);

}


/* =========================
   LINKS
========================= */

.auth-container a {

    color: #243447;

    font-size: 13px;

    text-decoration: none;

}


.forgot-password {

    margin-top: 14px;

    transition: 0.2s;

}


.forgot-password:hover {

    text-decoration: underline;

}


/* =========================
   FORM CONTAINER
========================= */

.form-container {

    position: absolute;

    top: 0;

    height: 100%;

    transition: all 0.6s ease-in-out;

}


/* LOGIN */

.sign-in {

    left: 0;

    width: 50%;

    z-index: 2;

}


.auth-container.active .sign-in {

    transform: translateX(100%);

}


/* REGISTER */

.sign-up {

    left: 0;

    width: 50%;

    opacity: 0;

    z-index: 1;

}


.auth-container.active .sign-up {

    transform: translateX(100%);

    opacity: 1;

    z-index: 5;

    animation: move 0.6s;

}


/* =========================
   ANIMATION
========================= */

@keyframes move {

    0%,
    49.99% {

        opacity: 0;

        z-index: 1;

    }


    50%,
    100% {

        opacity: 1;

        z-index: 5;

    }

}


/* =========================
   TOGGLE
========================= */

.toggle-container {

    position: absolute;

    top: 0;

    left: 50%;

    width: 50%;

    height: 100%;

    overflow: hidden;

    transition: all 0.6s ease-in-out;

    border-radius:

        130px 0 0 130px;

    z-index: 100;

}


.auth-container.active .toggle-container {

    transform: translateX(-100%);

    border-radius:

        0 130px 130px 0;

}


/* =========================
   TOGGLE BACKGROUND
========================= */

.toggle {

    background:

        linear-gradient(
            135deg,
            #243447,
            #111827
        );

    color: #ffffff;

    position: relative;

    left: -100%;

    width: 200%;

    height: 100%;

    transform: translateX(0);

    transition: all 0.6s ease-in-out;

}


.auth-container.active .toggle {

    transform: translateX(50%);

}


/* =========================
   TOGGLE PANEL
========================= */

.toggle-panel {

    position: absolute;

    width: 50%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    padding: 0 90px;

    text-align: center;

    top: 0;

    transition: all 0.6s ease-in-out;

}


.toggle-panel h1 {
    max-width: 520px;

    color: #ffffff;

    font-size: clamp(42px, 4vw, 68px);

    line-height: 1.1;
}

.toggle-panel p {
    max-width: 480px;

    font-size: 15px;

    line-height: 1.8;

    color: rgba(255, 255, 255, 0.75);

    margin: 25px 0;
}


/* LEFT */

.toggle-left {

    transform: translateX(-200%);

}


.auth-container.active .toggle-left {

    transform: translateX(0);

}


/* RIGHT */

.toggle-right {

    right: 0;

}


.auth-container.active .toggle-right {

    transform: translateX(200%);

}


/* =========================
   TOGGLE LABEL
========================= */

.auth-label {

    font-size: 11px;

    letter-spacing: 2px;

    color: rgba(255, 255, 255, 0.55);

    margin-bottom: 18px;

}


/* =========================
   OUTLINE BUTTON
========================= */

.auth-container button.hidden {

    background: transparent;

    border: 1px solid rgba(255, 255, 255, 0.7);

}


.auth-container button.hidden:hover {

    background: #ffffff;

    color: #1f2933;

}


/* =========================
   MESSAGE
========================= */

.auth-message {

    width: 100%;

    font-size: 12px;

    padding: 10px 12px;

    margin-bottom: 10px;

    border-radius: 8px;

    background: #fff3cd;

    color: #856404;

}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .auth-page {

        padding: 20px 15px;

    }


    .auth-container {

        min-height: 700px;

        border-radius: 20px;

    }


    .form-container {

        width: 100%;

        height: 50%;

    }


    .sign-in {

        top: 0;

        left: 0;

    }


    .sign-up {

        top: 0;

        left: 0;

    }


    .toggle-container {

        top: 50%;

        left: 0;

        width: 100%;

        height: 50%;

        border-radius:

            60px 60px 0 0;

    }


    .auth-container.active .toggle-container {

        transform: translateY(-100%);

        border-radius:

            0 0 60px 60px;

    }


    .toggle {

        left: 0;

        top: -100%;

        width: 100%;

        height: 200%;

    }


    .auth-container.active .toggle {

        transform: translateY(50%);

    }


    .toggle-panel {

        width: 100%;

        height: 50%;

    }


    .toggle-left {

        top: 0;

        transform: translateY(-200%);

    }


    .auth-container.active .toggle-left {

        transform: translateY(0);

    }


    .toggle-right {

        bottom: 0;

    }


    .auth-container.active .toggle-right {

        transform: translateY(200%);

    }


    .auth-container h1 {

        font-size: 30px;

    }


    .toggle-panel h1 {

        font-size: 30px;

    }


    .auth-container form {

        padding: 0 30px;

    }

}

/* =========================
   MOBILE LOGIN / REGISTER
========================= */

@media (max-width: 768px) {

    .auth-page {
        width: 100%;
        min-height: 100dvh;
        padding: 12px;
        align-items: center;
        justify-content: center;
    }

    .auth-container {
        width: 100%;
        max-width: 500px;
        min-height: 720px;
        height: 720px;
        border-radius: 24px;
        overflow: hidden;
        position: relative;
    }


    /* =========================
       FORM AREA
    ========================= */

    .form-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 50%;
        transition:
            opacity 0.45s ease,
            transform 0.45s ease;
    }

    .auth-container form {
        width: 100%;
        height: 100%;
        padding: 25px 25px;
    }

    .auth-container h1 {
        font-size: 30px;
        line-height: 1.15;
        margin-bottom: 8px;
    }

    .auth-subtitle {
        max-width: 300px;
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .auth-container input {
        width: 100%;
        max-width: 360px;
        margin: 6px 0;
        padding: 13px 15px;
        font-size: 13px;
    }

    .auth-container button {
        padding: 12px 30px;
        margin-top: 12px;
    }

    .forgot-password {
        margin-top: 10px;
        font-size: 12px;
    }


    /* =========================
       LOGIN
    ========================= */

    .sign-in {
        top: 0;
        left: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        z-index: 10;
        pointer-events: auto;
    }

    .auth-container.active .sign-in {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-25px);
        pointer-events: none;
    }


    /* =========================
       REGISTER
    ========================= */

    .sign-up {
        top: 0;
        left: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(25px);
        z-index: 10;
        pointer-events: none;
    }

    .auth-container.active .sign-up {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        z-index: 10;
        pointer-events: auto;
        animation: none;
    }


    /* =========================
       TOGGLE AREA
    ========================= */

    .toggle-container {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 50%;

        transform: none !important;

        border-radius: 55px 55px 0 0;
        overflow: hidden;

        z-index: 100;
        transition: none;
    }

    .auth-container.active .toggle-container {
        transform: none !important;
        border-radius: 55px 55px 0 0;
    }


    /* =========================
       BLUE BACKGROUND
    ========================= */

    .toggle {
        position: absolute;

        top: 0;
        left: 0;

        width: 100%;
        height: 100%;

        transform: none !important;

        transition: none;

        background:
            linear-gradient(
                135deg,
                #243447,
                #111827
            );
    }


    /* =========================
       TOGGLE PANELS
    ========================= */

    .toggle-panel {
        position: absolute;

        top: 0;
        left: 0;

        width: 100%;
        height: 100%;

        padding: 25px 28px;

        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;

        text-align: center;

        transition:
            opacity 0.4s ease,
            transform 0.4s ease;
    }


    .toggle-panel h1 {
        max-width: 330px;
        font-size: 28px;
        line-height: 1.15;
    }

    .toggle-panel p {
        max-width: 320px;
        font-size: 13px;
        line-height: 1.6;
        margin: 16px 0;
    }

    .auth-label {
        font-size: 9px;
        letter-spacing: 1.8px;
        margin-bottom: 10px;
    }


    /* =========================
       REGISTER STATE
       SHOW LOGIN BUTTON
    ========================= */

    .toggle-right {
        right: auto;
        left: 0;

        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }

    .auth-container.active .toggle-right {
        opacity: 0;
        visibility: hidden;

        transform: translateY(25px);

        pointer-events: none;
    }


    /* =========================
       LOGIN STATE
       SHOW SIGN IN BUTTON
    ========================= */

    .toggle-left {
        left: 0;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-25px);

        pointer-events: none;
    }

    .auth-container.active .toggle-left {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }


    /* =========================
       MOBILE BUTTON
    ========================= */

    .auth-container button.hidden {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        min-width: 190px;
        min-height: 48px;

        padding: 12px 24px;

        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.75);

        color: #ffffff;
    }

    .auth-container button.hidden:hover {
        background: #ffffff;
        color: #1f2933;
    }


    /* =========================
       SMALL PHONES
    ========================= */

    @media (max-width: 400px) {

        .auth-page {
            padding: 8px;
        }

        .auth-container {
            min-height: 700px;
            height: 700px;
            border-radius: 20px;
        }

        .auth-container form {
            padding: 20px 18px;
        }

        .auth-container h1 {
            font-size: 27px;
        }

        .auth-subtitle {
            font-size: 12px;
            max-width: 270px;
        }

        .auth-container input {
            max-width: 100%;
            padding: 12px 13px;
            font-size: 12px;
        }

        .auth-container button {
            padding: 11px 25px;
            font-size: 11px;
        }

        .toggle-container,
        .auth-container.active .toggle-container {
            border-radius: 45px 45px 0 0;
        }

        .toggle-panel {
            padding: 20px 18px;
        }

        .toggle-panel h1 {
            font-size: 25px;
            max-width: 280px;
        }

        .toggle-panel p {
            font-size: 12px;
            max-width: 270px;
            line-height: 1.5;
        }

        .auth-container button.hidden {
            min-width: 175px;
            min-height: 45px;
            font-size: 10px;
        }
    }
}
/*  */
