/* Layout de autenticação */

.auth-body {
    background: #ffffff;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Área institucional */

.auth-brand-panel {
    position: relative;
    width: 43%;
    min-height: 100vh;
    background: #101f38;
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, .035);
}

.auth-brand-panel::before {
    width: 550px;
    height: 550px;
    top: -280px;
    right: -250px;
}

.auth-brand-panel::after {
    width: 450px;
    height: 450px;
    bottom: -220px;
    left: -200px;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 460px;
    margin: auto;
}

.auth-brand-logo {
    width: 240px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 35px;
}

.auth-illustration {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 10px 0 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(96, 165, 250, .08);
}

.auth-illustration::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: rgba(96, 165, 250, .09);
}

.auth-illustration i {
    position: relative;
    font-size: 80px;
    color: #91b9f4;
}

.auth-brand-title {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.auth-brand-description {
    color: #b7c8df;
    font-size: 15px;
    line-height: 1.8;
}

.auth-brand-footer {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #9fb4d0;
    font-size: 12px;
}

/* Área do formulário */

.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.auth-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.auth-form-container .form-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-form-container .form-control {
    min-height: 48px;
    border-color: var(--border-color);
    font-size: 14px;
}

.auth-form-container .form-control:focus {
    border-color: #93b4ee;
    box-shadow: 0 0 0 3px rgba(40, 101, 213, .09);
}

.auth-form-container .input-group-text {
    background: #ffffff;
    color: #94a3b8;
    border-color: var(--border-color);
}

.auth-form-container .input-group > .form-control {
    border-radius: 0 10px 10px 0;
}

.auth-form-container .input-group-text:first-child {
    border-radius: 10px 0 0 10px;
}

.auth-form-container .password-input {
    border-radius: 0 !important;
}

.auth-password-toggle {
    background: white;
    color: #64748b;
    border: 1px solid var(--border-color);
    border-radius: 0 10px 10px 0;
    padding: 0 14px;
}

.auth-password-toggle:hover {
    background: #f1f5f9;
}

.auth-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.auth-submit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.auth-secondary-button {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.auth-home-link {
    display: block;
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-home-link:hover {
    color: var(--primary);
}

.auth-mobile-logo {
    display: none;
}

/* Responsividade */

@media (max-width: 1199.98px) {

    .auth-brand-panel {
        padding: 40px;
    }
}

@media (max-width: 991.98px) {

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100vh;
        padding: 30px;
    }

    .auth-mobile-logo {
        display: flex;
        justify-content: center;
        background: #101f38;
        border-radius: 14px;
        padding: 22px;
        margin-bottom: 30px;
    }

    .auth-mobile-logo img {
        width: 190px;
        max-width: 100%;
        object-fit: contain;
    }
}

@media (max-width: 575.98px) {

    .auth-form-panel {
        padding: 25px;
    }

    .auth-title {
        font-size: 26px;
    }
}

/* V8 — identidade pública aplicada ao layout de autenticação existente. */
.auth-body{--primary:#0065a8;--primary-dark:#003c65;--text-primary:#003c65;--text-secondary:#486275;--border-color:#c8dce9;background:#fff;color:#183c56;}
.auth-brand-panel{background:radial-gradient(ellipse at 100% 0%,#eac45b55,transparent 45%),linear-gradient(125deg,#003c65,#0065a8 65%,#075180);}
.auth-brand-logo{background:transparent;padding:0;border-radius:0;display:block;margin:0 auto 24px;filter:drop-shadow(0 0 2px #ffffff) drop-shadow(0 0 7px #ffffffb0) drop-shadow(0 0 18px #ffffff55);}
.auth-brand-title{color:#fff;}
.auth-brand-description,.auth-brand-footer{color:#fff;}
.auth-brand-footer{border-color:#ffffff40;}
.auth-illustration{background:#ffffff18;}
.auth-illustration::before{background:#ffffff14;}
.auth-illustration i{color:#ffdc65;}
.auth-form-panel{background:linear-gradient(135deg,#fff,#edf7ff);}
.auth-form-container h1,.auth-form-container h2,.auth-form-container .form-label{color:#003c65;}
.auth-form-container .text-muted{color:#486275!important;}
.auth-form-container a{color:#0065a8;}
.auth-form-container a:hover{color:#003c65;}
.auth-form-container .btn-primary,.auth-form-container .auth-submit{--bs-btn-color:#16344a;--bs-btn-bg:#ffc928;--bs-btn-border-color:#ffc928;--bs-btn-hover-color:#16344a;--bs-btn-hover-bg:#f0b900;--bs-btn-hover-border-color:#f0b900;--bs-btn-active-color:#16344a;--bs-btn-active-bg:#e5af00;--bs-btn-active-border-color:#e5af00;--bs-btn-disabled-color:#16344a;--bs-btn-disabled-bg:#ffc928;--bs-btn-disabled-border-color:#ffc928;background:#ffc928;border-color:#ffc928;color:#16344a;font-weight:700;}
.auth-form-container .btn-primary:hover,.auth-form-container .auth-submit:hover{background:#f0b900;border-color:#f0b900;color:#16344a;}
.auth-form-container .form-control:focus{border-color:#0065a8;box-shadow:0 0 0 3px #0065a826;}
.auth-form-container .form-check-input:checked{background-color:#0065a8;border-color:#0065a8;}
.auth-form-container .input-group-text,.auth-password-toggle{color:#486275;}
.auth-mobile-logo{background:#edf7ff;border:1px solid #c8dce9;}

/* V9 — centralização do painel institucional */
.auth-brand-content{width:100%;text-align:center;}
.auth-illustration{margin:0 auto 30px;}
.auth-brand-title,.auth-brand-description,.auth-brand-footer{text-align:center;}
.auth-brand-footer{width:100%;}
.auth-mobile-logo{background:transparent;border:0;}
