/* Layout independente das telas públicas de autenticação. */
.auth-body {
    min-width: 0;
    overflow-x: hidden;
}

.auth-shell {
    grid-template-columns: minmax(310px, .82fr) minmax(0, 1.18fr);
    width: min(1120px, 100%);
    min-width: 0;
}

.auth-aside,
.auth-form-card,
.auth-form-card .login-body,
.auth-form-card .register-body,
.auth-form-intro {
    min-width: 0;
}

.auth-form-card { overflow-x: hidden; }
.auth-brand-logo { display:block; width:36px !important; max-width:36px !important; height:36px !important; max-height:36px !important; flex:0 0 36px; object-fit:contain; }
.auth-form-intro { padding: 3rem clamp(2rem, 5vw, 4rem) 0; }
.auth-form-card .login-body,
.auth-form-card .register-body { padding: 1.65rem clamp(2rem, 5vw, 4rem) 3rem; }
.auth-form-card .row { --bs-gutter-x: 1rem; --bs-gutter-y: 0; }

.auth-form-section-title {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    column-gap: .5rem;
    row-gap: .15rem;
    align-items: center;
    margin: .25rem 0 1rem;
    padding-bottom: .7rem;
    line-height: 1.25;
}

.auth-form-section-title > i { grid-row: 1 / span 2; }
.auth-form-section-title > span { min-width: 0; }
.auth-form-section-title > small {
    grid-column: 2;
    margin: 0;
    color: #71838a;
    font-size: .67rem;
    font-weight: 600;
    white-space: normal;
}

.auth-user-section-title { margin-top: 1.6rem; }
.auth-form-card .form-floating { margin-bottom: 1rem; }
.auth-form-card .form-control,
.auth-form-card .form-select { width: 100%; max-width: 100%; }
.auth-form-card .auth-legal-links { padding-bottom: .25rem; }

/* Autenticação Essentia: uma camada visual única, sem o antigo cartão branco/roxo. */
.auth-body { position:relative; isolation:isolate; background:radial-gradient(circle at 15% 15%,rgba(223,242,165,.42),transparent 34%),linear-gradient(135deg,#eaf6f3 0%,#f8fbfa 52%,#e8f1ef 100%) !important; color:#173847; }
.auth-body::before,.auth-body::after { position:fixed; z-index:-1; border-radius:50%; content:""; filter:blur(2px); pointer-events:none; }
.auth-body::before { top:-18vw; right:-8vw; width:42vw; height:42vw; background:rgba(223,242,165,.28); }
.auth-body::after { bottom:-22vw; left:-12vw; width:48vw; height:48vw; background:rgba(92,166,155,.17); }
.auth-shell { display:grid; gap:0; overflow:hidden; border:1px solid rgba(255,255,255,.8); border-radius:32px; background:rgba(255,255,255,.48); box-shadow:0 30px 90px rgba(23,56,71,.16); backdrop-filter:blur(22px); }
.auth-aside { position:relative; display:flex; flex-direction:column; justify-content:flex-start; min-height:620px; padding:58px 34px 34px; overflow:hidden; color:#fff; background:linear-gradient(145deg,#174f59,#257e79 58%,#5ca69b); }
.auth-aside::before { position:absolute; right:-110px; bottom:-120px; width:340px; height:340px; border:30px solid rgba(223,242,165,.25); border-radius:50%; content:""; }
.auth-brand { position:relative; z-index:1; color:#fff; }
.auth-brand-logo { width:58px !important; height:58px !important; max-width:58px !important; max-height:58px !important; flex-basis:58px; filter:drop-shadow(0 7px 14px rgba(0,0,0,.18)); }
.auth-brand { gap:13px; margin-left:42px; font-size:1.34rem; }
.auth-art { display:none !important; }
.auth-copy { position:relative; z-index:1; max-width:330px; }
.auth-copy { margin-top:auto; }
.auth-copy h1 { margin:0 0 12px; color:#fff; font-size:clamp(1.8rem,3vw,2.55rem); letter-spacing:-.045em; line-height:1.08; }
.auth-copy p { color:rgba(255,255,255,.8); line-height:1.65; }
.auth-benefits { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.auth-benefits span { padding:8px 10px; border:1px solid rgba(255,255,255,.24); border-radius:999px; color:rgba(255,255,255,.9); background:rgba(255,255,255,.1); font-size:.72rem; }
.auth-form-card { margin:0 !important; border:0 !important; border-radius:0 !important; background:#fff !important; box-shadow:none !important; backdrop-filter:none !important; }
.auth-body { min-height:100dvh; display:flex !important; align-items:center !important; justify-content:center !important; padding:24px !important; }
.auth-form-card .login-body,.auth-form-card .register-body { border:0 !important; background:#fff !important; box-shadow:none !important; }
.auth-form-card .auth-form-intro { background:#fff !important; }
.auth-form-intro { padding-top:2.5rem; }
.auth-form-intro .kicker,.auth-form-intro .kicker + h2 { color:#173847; }
.auth-form-intro h2 { font-size:clamp(1.55rem,3vw,2rem); letter-spacing:-.04em; }
.auth-form-intro p { color:#66808a; }
.login-header,.register-header { display:none; }
.auth-form-card .form-floating { margin-bottom:1rem; }
.auth-form-card .form-control,.auth-form-card .form-select { height:56px; border:1px solid rgba(25,125,120,.18); border-radius:15px; background:rgba(255,255,255,.72); color:#173847; box-shadow:inset 0 1px 0 rgba(255,255,255,.8); }
.auth-form-card .form-control:focus,.auth-form-card .form-select:focus { border-color:#287c78; box-shadow:0 0 0 4px rgba(40,124,120,.12); }
.auth-form-card .form-floating>label { color:#718991; }
.btn-login,.btn-register { height:52px; border:1px solid rgba(255,255,255,.42); border-radius:15px; color:#fff; background:linear-gradient(135deg,#238e86,#146b6b); box-shadow:0 12px 24px rgba(25,125,120,.2); font-weight:800; transition:transform .2s ease,box-shadow .2s ease; }
.btn-login:hover,.btn-register:hover { color:#fff; background:linear-gradient(135deg,#2d968d,#176d6d); box-shadow:0 15px 28px rgba(25,125,120,.26); transform:translateY(-2px); }
.auth-inline-error { margin:0 0 13px; padding:11px 13px; border:1px solid rgba(177,67,75,.25); border-radius:13px; color:#a13742; background:#fff2f2; font-size:.82rem; font-weight:700; line-height:1.4; }
.auth-form-card .alert { border-radius:13px; border:1px solid rgba(25,125,120,.16); background:rgba(223,242,165,.28); color:#285e5d; }
.auth-form-card .register-link,.auth-form-card .login-link { color:#66808a; }
.auth-form-card .register-link a,.auth-form-card .login-link a,.auth-form-card .auth-legal-links a { color:#197d78; }
@media (min-width:901px){.auth-register-shell{height:auto;min-height:calc(100vh - 48px)}.auth-register-shell .auth-form-card{overflow:visible}.auth-login-shell{min-height:620px}.auth-brand-logo{width:48px!important;height:48px!important}}
@media (max-width:900px){.auth-shell{display:block;overflow:visible;border-radius:0;background:transparent;box-shadow:none}.auth-aside{min-height:180px;padding:22px 24px;border-radius:0 0 28px 28px}.auth-art,.auth-copy{display:none !important}.auth-form-card{margin:-24px 14px 20px;border-radius:24px;background:#fff;border:1px solid rgba(255,255,255,.78);box-shadow:0 18px 45px rgba(23,56,71,.07)}.auth-form-intro{padding-top:2.2rem}.auth-body{padding:0 !important;align-items:flex-start !important}.auth-brand{left:0;margin-left:0;transform:none}.auth-brand-logo{width:40px!important;height:40px!important;max-width:40px!important;max-height:40px!important;flex-basis:40px!important}}
@media(prefers-reduced-motion:reduce){.btn-login,.btn-register{transition:none}}

@media (min-width: 901px) {
    .auth-register-shell {
        height: min(860px, calc(100vh - 3rem));
        min-height: 640px;
    }

    .auth-register-shell .auth-form-card {
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #b7d3cc transparent;
    }

    .auth-register-shell .auth-form-card::-webkit-scrollbar { width: 8px; }
    .auth-register-shell .auth-form-card::-webkit-scrollbar-thumb {
        background: #b7d3cc;
        border-radius: 99px;
    }
}

@media (max-width: 900px) {
    .auth-body {
        display: block;
        min-height: 100dvh;
        padding: 0;
    }

    .auth-shell,
    .auth-register-shell {
        display: block;
        width: 100%;
        min-height: 100dvh;
        border-radius: 0;
    }

    .auth-aside {
        min-height: 108px;
        padding: 1.25rem;
    }

    .auth-aside::before {
        width: 190px;
        height: 190px;
        right: -80px;
        top: -105px;
    }

    .auth-aside::after,
    .auth-art,
    .auth-copy { display: none; }

    .auth-brand {
        top: 50%;
        left: 1.25rem;
        transform: translateY(-50%);
    }

    .auth-form-card,
    .auth-register-shell .auth-form-card {
        min-height: calc(100dvh - 108px);
        overflow: visible;
    }

    .auth-form-intro { padding: 1.75rem 1.25rem 0; }
    .auth-form-intro h2 { font-size: 1.45rem; }
.auth-form-card .login-body,
    .auth-form-card .register-body { padding: 1.35rem 1.25rem 2rem; }
    .auth-form-card .row { --bs-gutter-x: 0; --bs-gutter-y: 0; }

    .auth-form-card .row > .col-md-6 {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .auth-form-card .row > .col-md-6 + .col-md-6 { margin-top: 1rem; }
    .auth-form-section-title { margin-top: .1rem; }
}

@media (max-width: 380px) {
    .auth-aside {
        min-height: 96px;
        padding-inline: 1rem;
    }

    .auth-brand {
        left: 1rem;
        font-size: .86rem;
    }

    .auth-form-card,
    .auth-register-shell .auth-form-card { min-height: calc(100dvh - 96px); }

    .auth-form-intro,
    .auth-form-card .login-body,
    .auth-form-card .register-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
