@font-face {
    font-family: "Baloo2";
    src: url(../fonts/Baloo2-VariableFont_wght.ttf);
}

@font-face {
    font-family: "Bungee";
    src: url(../fonts/Bungee-Regular.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Baloo2', Bungee;
    font-weight: 400;
}

body {
    background-image: url(../img/apresentacao_img/background_fundo.png);
    background-color: #E6FBFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
}

.container {
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    width: 90%;
    max-width: 1000px;
    min-height: 700px;
}

h1 {
    font-family: 'Bungee';
    font-weight: 400;
    margin: 20px;
    font-size: 32px;
}

.container a,
p {
    color: #333;
    font-size: 13px;
    margin: 10px 0 10px;
}

.container a {
    color: #1C86CC;
}

.container button {
    background-color: #1C86CC;
    color: #fff;
    font-size: 18px;
    padding: 10px 45px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 20px;
    cursor: pointer;
    width: 100%;
}

.container button.hidden {
    background-color: transparent;
    border-color: #fff;
}

.container form {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
}

.container input {
    border-color: #00000027;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 10px;
    width: 100%;
    outline: none;
    margin-bottom: 10px;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.active .sign-in {
    transform: translateX(100%);
}

.sign-up {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.active .sign-up {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: move 0.6s;
}

@keyframes move {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }
    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    z-index: 1000;
}

.container.active .toggle-container {
    transform: translateX(-100%);
}

.toggle {
    background: url(../img/cadastro_login/cadastro-login.png);
    background-position: right;
    background-size: 50%;
    background-repeat: no-repeat;
    height: 100%;
    color: #fff;
    position: relative;
    left: -100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.container.active .toggle {
    background-position: left;
    transform: translateX(50%);
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle-left {
    transform: translateX(-200%);
}

.container.active .toggle-left {
    transform: translateX(0);
}

.toggle-right {
    right: 0;
    transform: translateX(0);
}

.container.active .toggle-right {
    transform: translateX(200%);
}

.cpf,
.cell,
.password,
.email,
.name {
    text-align: start;
    width: 100%;
    font-size: 18px;
}

.checkPassword {
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    margin-top: 10px;
    width: 100%;
    user-select: none;
}

.checkPassword>a {
    font-size: 15px;
    cursor: pointer;
}

.checkPassword input {
    margin: 0px;
}

.lembrarMim {
    cursor: pointer;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        min-height: auto;
        overflow: visible;
    }

    .form-container {
        position: relative;
        width: 100%;
        height: auto;
        transform: none !important;
        opacity: 1 !important;
        z-index: auto !important;
        animation: none !important;
        display: none;
    }

    .toggle-container {
        display: none !important;
    }

    .container.active .sign-in,
    .container.active .sign-up {
        transform: none !important;
    }

    .container button {
        font-size: 16px;
        padding: 10px 30px;
    }

    h1 {
        font-size: 26px;
    }

    .inputH3 h3 {
        font-size: 14px;
    }

    .checkPassword {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ===== PASSWORD WRAPPER - ÍCONE DENTRO DO INPUT ===== */
.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px; /* espaço para o ícone */
    border-radius: 10px;
    border: 1px solid #00000027;
    padding: 10px 15px;
    font-size: 13px;
    outline: none;
}

.password-wrapper .toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-55%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #888;
    transition: 0.2s ease-in-out;
}

.password-wrapper .toggle-password:hover {
    color: #333;
}