@font-face {
    font-family: "Edwardian";
    src: url("../fonts/edwardian/web/84ae358e627d67d90bd613fcedc20c10.eot");
    src: url("../fonts/edwardian/web/84ae358e627d67d90bd613fcedc20c10.eot?#iefix")format("embedded-opentype"),
        url("../fonts/edwardian/web/84ae358e627d67d90bd613fcedc20c10.woff")format("woff"),
        url("../fonts/edwardian/web/84ae358e627d67d90bd613fcedc20c10.woff2")format("woff2"),
        url("../fonts/edwardian/web/84ae358e627d67d90bd613fcedc20c10.ttf")format("truetype"),
        url("../fonts/edwardian/web/84ae358e627d67d90bd613fcedc20c10.svg#Edwardian Script ITC")format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Jost', 'Inter', sans-serif;
    background: linear-gradient(228deg, #01233F, #15476F, #15476F, #4F8BB6, #70ADCF, #9FCAE3);
    background-size: 400% 400%;
    -webkit-animation: AnimationName 14s ease infinite;
    -moz-animation: AnimationName 14s ease infinite;
    animation: AnimationName 14s ease infinite;
}

@-webkit-keyframes AnimationName {
    0% {
        background-position: 0% 90%;
    }

    50% {
        background-position: 100% 11%;
    }

    100% {
        background-position: 0% 90%;
    }
}

@-moz-keyframes AnimationName {
    0% {
        background-position: 0% 90%;
    }

    50% {
        background-position: 100% 11%;
    }

    100% {
        background-position: 0% 90%;
    }
}

@keyframes AnimationName {
    0% {
        background-position: 0% 90%;
    }

    50% {
        background-position: 100% 11%;
    }

    100% {
        background-position: 0% 90%;
    }
}

.main {
    width: 380px;
    height: 500px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4);
}

#chk {
    display: none;
}

.signup {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

label {
    color: #1e293b;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 40px 0 28px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.imgs {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5eef5, #c8d4db);
    padding: 8px;
    box-shadow: 0 4px 12px rgba(79, 139, 182, 0.3);
    transition: transform 0.3s ease;
}

.imgs:hover {
    transform: scale(1.05);
}

input {
    width: 80%;
    height: 48px;
    background: #f1f5f9;
    display: block;
    margin: 16px auto;
    padding: 0 20px;
    border: 2px solid #e2e8f0;
    outline: none;
    border-radius: 40px;
    font-size: 14px;
    font-family: 'Jost', sans-serif;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #4F8BB6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 139, 182, 0.2);
    transform: scale(1.02);
}

.signup button {
    width: 80%;
    height: 48px;
    margin: 20px auto 0;
    display: block;
    color: white;
    background: linear-gradient(135deg, #4F8BB6, #70ADCF);
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Jost', sans-serif;
}

.signup button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 139, 182, 0.4);
}

.signup button:active {
    transform: translateY(0);
}

.login {
    height: 460px;
    background: #ffffff;
    border-radius: 48px 48px 24px 24px;
    transform: translateY(-160px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
}

.login label {
    color: #4F8BB6;
    transform: scale(0.85);
    margin: 35px 0 24px;
}

.login button {
    width: 80%;
    height: 48px;
    margin: 20px auto 0;
    display: block;
    color: white;
    background: linear-gradient(135deg, #4F8BB6, #70ADCF);
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Jost', sans-serif;
}

.login button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 139, 182, 0.4);
}

.login button:active {
    transform: translateY(0);
}

.login input:focus {
    border-color: #4F8BB6;
    box-shadow: 0 0 0 3px rgba(79, 139, 182, 0.2);
}

#chk:checked~.login {
    transform: translateY(-480px);
}

#chk:checked~.login label {
    transform: scale(1);
}

#chk:checked~.signup label {
    transform: scale(0.85);
}

/* Responsividade Mobile */
@media (max-width: 640px) {
    body {
        padding: 16px;
    }

    .main {
        width: 340px;
        height: 540px;
    }

    label {
        font-size: 1.6em;
        margin: 38px 0 26px;
    }

    .imgs {
        width: 44px;
        height: 44px;
    }

    input,
    button {
        width: 85%;
        height: 46px;
        margin: 14px auto;
    }

    .login {
        height: 500px;
        transform: translateY(-165px);
    }

    #chk:checked~.login {
        transform: translateY(-500px);
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .main {
        width: 300px;
        height: 520px;
        border-radius: 20px;
    }

    label {
        font-size: 1.4em;
        margin: 32px 0 22px;
        gap: 8px;
    }

    .imgs {
        width: 38px;
        height: 38px;
        padding: 6px;
    }

    input,
    button {
        width: 88%;
        height: 42px;
        font-size: 13px;
        margin: 12px auto;
    }

    .login {
        height: 480px;
        transform: translateY(-155px);
    }

    #chk:checked~.login {
        transform: translateY(-490px);
    }

    .login label {
        margin: 30px 0 20px;
    }
}

@media (max-width: 375px) {
    .main {
        width: 280px;
        height: 500px;
    }

    label {
        font-size: 1.2em;
        margin: 28px 0 18px;
    }

    .imgs {
        width: 34px;
        height: 34px;
    }

    input,
    button {
        width: 90%;
        height: 40px;
        margin: 10px auto;
    }

    .login {
        height: 460px;
        transform: translateY(-148px);
    }

    #chk:checked~.login {
        transform: translateY(-470px);
    }
}

/* Animação de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main {
    animation: fadeInUp 0.5s ease-out;
}

.signup,
.login {
    will-change: transform;
}