* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: #07364D !important;
    overflow: hidden;
    height: 100vh;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.login-header {
    background-image: url('../../img/SICOOB/fundoTopo.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 6px 2%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.login-header-logo {
    width: 66%;
    padding: 2px 0;
}

.login-header-logo img {
    width: 32%;
}

.login-header-form {
    width: 34%;
}

.login-header-form form {
    background: rgba(7, 54, 77, 0.88);
    border-radius: 14px;
    padding: 14px 18px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.30);
}

.login-header-form .lf-row {
    display: flex;
    align-items: center;
    margin-bottom: 7px;
    gap: 8px;
}

.login-header-form .lf-row label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    width: 58px;
    flex-shrink: 0;
}

.login-header-form .lf-row input {
    flex: 1;
    height: 34px;
    border: 1.5px solid #d0d0d0;
    border-radius: 50px;
    padding: 0 14px;
    font-size: 13px;
    color: #333;
    outline: none;
    transition: border-color .2s;
    width: 100%;
    box-sizing: border-box;
}

.login-header-form .lf-row input:focus {
    border-color: #00ae9d;
}

.login-header-form .lf-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.login-header-form .lf-actions a {
    color: #00ae9d;
    font-size: 12px;
    text-decoration: none;
}

.login-header-form .lf-actions a:hover { text-decoration: underline; }

.login-header-form .btn-login {
    height: 34px;
    padding: 0 22px;
    background-color: #00ae9d;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s;
}

.login-header-form .btn-login:hover { background-color: #009484; }

.login-banner {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    background-color: #17A898;
}

.login-banner img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
}

.login-banner-desktop { display: flex; }
.login-banner-mobile  { display: none; }

@media (max-width: 767px) {
    .login-banner-desktop { display: none; }
    .login-banner-mobile  { display: flex; }

    /* Body sem overflow fixo no mobile (teclado virtual reduz viewport) */
    body {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
    }

    .login-wrapper {
        height: auto;
        min-height: 100vh;
    }

    /* Header empilhado: logo em cima, formulário embaixo */
    .login-header {
        flex-direction: column;
        align-items: stretch;
        padding: 28px 20px 24px;
        gap: 20px;
    }

    .login-header-logo {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .login-header-logo img {
        width: auto;
        max-width: 190px;
    }

    .login-header-form {
        width: 100%;
    }

    .login-header-form form {
        padding: 18px 20px 16px;
    }

    .login-header-form .lf-row label {
        width: 62px;
        font-size: 14px;
    }

    .login-header-form .lf-row input {
        height: 38px;
        font-size: 14px;
    }

    .login-header-form .btn-login {
        height: 38px;
        font-size: 14px;
        padding: 0 26px;
    }

    .login-header-form .lf-actions a {
        font-size: 13px;
    }
}
