/* RESET --------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #ffffff;
    min-height: 100dvh;        /* Corrige bug do 100vh no celular */
    overflow-x: hidden;
    overflow-y: auto;          /* Permite rolagem */
}

.container {
    display: flex;
    min-height: 100dvh;        /* Altura real no mobile */
    height: auto;              /* Permite expansão */
}

/* ===================================================================== */
/* ========================= LADO ESQUERDO ============================= */
/* ===================================================================== */

.left {
    width: 50%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.left img {
    width: 80%;
    max-width: 420px;
}


/* ===================================================================== */
/* ========================= LADO DIREITO ============================== */
/* ===================================================================== */

.right {
    width: 50%;
    background: #165fa2;
    display: flex;
    justify-content: center;
    align-items: center; /* <-- centraliza no desktop */
    position: relative;
    border-radius: 35px;
}


/* ===================================================================== */
/* ======================= CARD DE LOGIN =============================== */
/* ===================================================================== */

.login-box {
    width: 85%;
    max-width: 420px;
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 22px;
    box-shadow: 0px 15px 45px rgba(0,0,0,0.12);
    z-index: 10;
}

h1 {
    font-size: 32px;
    color: #222;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
}


/* ===================================================================== */
/* =============================== PASSO ================================ */
/* ===================================================================== */

.step {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: #555;
}

.step span {
    background: #ccc;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 12px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step .active {
    background: #0C6DFD;
}


/* ===================================================================== */
/* =============================== CAMPOS =============================== */
/* ===================================================================== */

label {
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
    color: #333;
}

input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 15px;
    border-radius: 40px;       
    border: 1px solid #ddd;
    outline: none;
    background: #f9f9f9;
    transition: 0.2s;
}

input:focus {
    border-color: #0C6DFD;
    background: #fff;
}

.password-wrapper {
    position: relative;
}

.eye {
    position: absolute;
    right: 16px;
    top: 13px;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.5;
}

.eye:hover {
    opacity: 0.8;
}


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

.forgot {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    text-decoration: none;
    color: #0C6DFD;
    font-weight: 600;
}


/* ===================================================================== */
/* ================================ BOTÃO =============================== */
/* ===================================================================== */

.btn {
    width: 100%;
    padding: 15px;
    background: #165fa2;
    color: #fff;
    border: none;
    border-radius: 40px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #0958c0;
}


/* ===================================================================== */
/* ================================ RODAPÉ ============================== */
/* ===================================================================== */

.login-rodape {
    margin-top: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-rodape {
    width: 100px;
}

.whatsapp-float {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    color: #25D366;
    gap: 6px;
}


/* ===================================================================== */
/* ============================= RESPONSIVO ============================= */
/* ===================================================================== */

@media (max-width: 900px) {

    /* Remove lado esquerdo */
    .left {
        display: none;
    }

    /* Ajusta o lado direito para permitir rolagem */
    .right {
        width: 100%;
        padding: 30px 0;
        min-height: 100dvh;
        height: auto;
        border-radius: 0;

        /* 🔥 CORREÇÃO PRINCIPAL 🔥 */
        align-items: flex-start !important;  /* Permite scroll no mobile paisagem */
    }

    .login-box {
        width: 90%;
        max-width: 420px;
        margin-top: 20px;  /* espaço para o topo */
    }
}
