/* ============================================
   LOGIN PAGE STYLES - Portal Trabalho Jovem
   ============================================ */

/* RESET */
html, body {
    height: 100%;
    margin: 0;
    background-color: #fff;

    /* FOOTER COMO FUNDO */
    background-image: url("../img/footer2.png");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto;
}


/* CONTAINER GERAL */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 0;
    /* Fundo cobre toda a altura sem scroll extra */
    background-attachment: local;
}


/* LOGO */
.logo-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    transition: transform 0.4s ease;
}

.logo-container img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* EFEITO ZOOM */
.logo-container:hover img {
    transform: scale(1.05);
}


/* CARD */
.login-card {
    max-width: 440px;        /* antes ~380 */
    width: 100%;
    padding: 28px 30px;      /* mais respiro interno */
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 18px rgba(0,0,0,.10);
    background: #fff;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;

    transform: translateY(40px);
}


.login-header {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* DIVISOR */
.divider {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin: 10px 0;
}

.form-control {
    height: 46px;
    font-size: 15px;
}

.input-group-text {
    padding: 0 14px;
}


/* BOTÃO */
.btn-login {
    height: 46px;
    font-size: 16px;
    font-weight: 600;
    background: #204180;
}


.btn-login:hover {
    background: #006394;
}

.login-header h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #204180;
}


/* FOOTER FIXO */
.footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
}

.footer-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* MODAL */
.modal-header {
    background: #1e4fa3;
    color: #fff;
}

@media (max-width: 768px) {
    .login-container {
        transform: translateY(20px);
    }

    .page-wrapper {
        padding-top: 30px;
        padding-bottom: 0;
    }
}

/* ── Responsividade aprimorada ────────────────────────────────────────────── */

/* Telas médias (tablets landscape, notebooks pequenos: 768px–1199px)
   A coluna da logo está oculta (d-none d-lg-flex), então o card
   precisa de margem lateral para não encostar nas bordas             */
@media (max-width: 1199px) {
    .login-card {
        margin-left: auto;
        margin-right: auto;
    }

    /* Garante que o col Bootstrap não ultrapasse a viewport */
    .col-lg-6,
    .col-md-8,
    .col-sm-10 {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Telas pequenas (celulares: até 575px) */
@media (max-width: 575px) {
    .page-wrapper {
        padding-top: 20px;
        padding-bottom: 0;
        align-items: flex-start;
    }

    .login-card {
        padding: 22px 18px;
        border-radius: 8px;
        /* ocupa quase toda a largura sem encostar nas bordas */
        max-width: 100%;
        margin-left: 12px;
        margin-right: 12px;
    }

    .login-header h5 {
        font-size: 17px;
    }
}