/* Layout moderno: painel central com split */
*,*::before,*::after{box-sizing:border-box}
body.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1A1E43;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    margin: 15px;
}
.login-panel {
    width: 100%;
    max-width: 1100px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 20px rgba(2,6,23,0.8);
    background: #fff;
    display: flex;
    min-height: 560px;
    margin: 0 auto;
}
/* DESKTOP: dividir 50% / 50% */
.login-left, .login-right {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
}
.login-left {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-right {
    background-image: url('/assets/img/bg-login.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #1A1E43;
}
.login-brand {
    display:flex;
    align-items:center;
    gap:.75rem;
    margin-bottom: 16px;
}
.login-brand img { max-height:48px; }
.login-title { font-size:1.6rem; font-weight:600; margin-bottom:.25rem; }
.login-sub { color:#6b7280; margin-bottom:18px; }
.form-floating .form-control { height: calc(2.5rem + 1rem); padding: .75rem 1rem; }
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    pointer-events: auto;
    z-index: 10;
}
.input-group-password { position: relative; }
.input-group-password .form-control {
    z-index: 1;
    position: relative;
    background: #fff;
    border-top-right-radius: 0.5rem !important;
    border-bottom-right-radius: 0.5rem !important;
}
.input-group-password .password-toggle {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}
.login-cta { margin-top: 12px; }
.aux-links { margin-top: 14px; font-size: .9rem; color:#6b7280; }
/* RESPONSIVO: empilha e aplica margem lateral de 15px para não ficar grudado */
@media (max-width: 992px) {
    .login-panel {
        flex-direction: column;
        max-width: 760px;
        min-height: auto;
        padding-left: 15px;
        padding-right: 15px;
    }
    .login-left, .login-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .login-right { min-height: 200px; height: 220px; }

    .aux-links{
        flex-direction: column;
    }
}
/* Ajustes finos para telas muito pequenas */
@media (max-width: 576px) {
    .login-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: .35rem;
    }
    .login-sub { margin-bottom: 12px; }
    .login-left { padding-top: 24px; padding-bottom: 24px; }
}
