body.portal-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 8%, rgba(143, 16, 34, .08), transparent 30%),
        radial-gradient(circle at 92% 86%, rgba(181, 138, 56, .11), transparent 28%),
        #f6f4f2 !important;
}

.auth-shell { min-height: 100vh; width: 100%; padding: 24px; }
.auth-shell .portal-topbar {
    width: min(1180px, 100%); min-height: 68px; margin: 0 auto 24px !important; padding: 10px 14px !important;
    border: 1px solid rgba(255,255,255,.13) !important; border-radius: 16px !important;
    color: #fff; background: linear-gradient(105deg,#4e0913,#74111f 58%,#8d1929) !important;
    box-shadow: 0 12px 32px rgba(62,8,17,.18) !important;
}
.auth-shell .portal-topbar:hover { border-color: rgba(255,255,255,.13) !important; }
.auth-shell .portal-brand-img { width: 39px !important; height: 49px !important; padding: 2px !important; border-radius: 4px !important; background: transparent; object-fit: contain; }
.auth-shell .portal-brand-title { color: #fff !important; font-size: .96rem !important; }
.auth-shell .portal-brand-kicker { color: #e9cfd3 !important; font-size: .59rem !important; }
.auth-shell .portal-pill { min-height: 40px; border-color: rgba(255,255,255,.17) !important; color: #fff !important; background: rgba(255,255,255,.07) !important; }
.auth-shell .portal-pill:hover { color: #fff !important; background: rgba(255,255,255,.14) !important; }
.auth-shell .portal-pill-primary { background: #fff !important; color: #68101c !important; }

.auth-grid {
    width: min(1180px,100%); min-height: calc(100vh - 140px); margin: 0 auto;
    display: grid; grid-template-columns: minmax(0,1.08fr) minmax(390px,.72fr); gap: 0; align-items: stretch;
    overflow: hidden; border: 1px solid rgba(69,38,45,.10); border-radius: 24px; background: #fff;
    box-shadow: 0 24px 70px rgba(64,30,38,.13);
}
.auth-panel {
    position: relative; min-height: 590px; padding: clamp(42px,5vw,72px); display: flex; flex-direction: column; justify-content: center;
    overflow: hidden; border: 0; border-radius: 0; color: #fff;
    background: linear-gradient(130deg,rgba(66,5,14,.97),rgba(111,14,28,.91)),url('../../imagens/wallpaper-unimb.png') center/cover;
}
.auth-panel::before { content:""; position:absolute; inset:0; background:linear-gradient(145deg,transparent 52%,rgba(211,166,77,.14)); pointer-events:none; }
.auth-panel::after { content:""; position:absolute; width:270px; height:270px; right:-115px; bottom:-115px; border:1px solid rgba(255,255,255,.16); border-radius:50%; box-shadow:0 0 0 38px rgba(255,255,255,.025),0 0 0 76px rgba(255,255,255,.018); }
.auth-panel > * { position:relative; z-index:1; }
.auth-panel .portal-eyebrow { align-self:flex-start; color:#ffe5aa; border-color:rgba(255,229,170,.22); background:rgba(255,255,255,.08); }
.auth-title { max-width:690px; margin:20px 0 18px; font-family:'Manrope',sans-serif; font-size:clamp(2.2rem,3.7vw,3.45rem); line-height:1.04; letter-spacing:-.045em; color:#fff; }
.auth-copy { max-width:630px; margin:0; color:rgba(255,255,255,.78); font-size:1rem; line-height:1.75; }
.auth-points { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:34px; }
.auth-point { min-height:150px; padding:18px; display:flex; flex-direction:column; gap:11px; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(255,255,255,.075); backdrop-filter:blur(8px); transition:.2s ease; }
.auth-point:hover { transform:translateY(-3px); background:rgba(255,255,255,.11); }
.auth-point i { color:#f2c66e; font-size:1.05rem; }
.auth-point strong { display:block; margin-bottom:5px; color:#fff; font-size:.86rem; line-height:1.35; }
.auth-point span { display:block; color:rgba(255,255,255,.68); font-size:.74rem; line-height:1.5; }

.auth-card { position:relative; padding:clamp(34px,4vw,56px); display:flex; flex-direction:column; justify-content:center; border:0 !important; border-radius:0 !important; background:#fff !important; box-shadow:none !important; }
.auth-card:hover { transform:none !important; box-shadow:none !important; }
.auth-card::before { content:""; position:absolute; top:0; right:0; left:0; height:4px; background:linear-gradient(90deg,#70101d,#c09342); }
.auth-card .admin-section-title { margin:0 0 8px; font-family:'Manrope',sans-serif; font-size:1.65rem; letter-spacing:-.025em; color:#2c2023; }
.auth-card > .portal-muted { max-width:410px; line-height:1.65; }
.auth-form { margin-top:4px; }
.auth-field-label { display:block; margin:0 0 7px; color:#493b3f; font-size:.78rem; font-weight:800; letter-spacing:.01em; }
.auth-input-wrap { position:relative; margin-bottom:17px; }
.auth-input-wrap > i { position:absolute; z-index:2; top:50%; left:16px; color:#8c7c81; transform:translateY(-50%); }
.auth-input {
    width:100%; min-height:54px; padding:12px 48px 12px 45px; border:1px solid #ddd5d7; border-radius:11px;
    color:#2f2427; background:#fcfbfb; outline:none; transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.auth-input::placeholder { color:#a69ba0; }
.auth-input:hover { border-color:#c8bbbf; background:#fff; }
.auth-input:focus { border-color:#8f1022; background:#fff; box-shadow:0 0 0 4px rgba(143,16,34,.09); }
.login-password-toggle { position:absolute; z-index:5; top:8px; right:8px; display:grid; width:38px; height:38px; place-items:center; border:0; border-radius:8px; color:#786b70; background:transparent; }
.login-password-toggle:hover,.login-password-toggle:focus-visible { color:#78131e; background:#f5eaed; outline:none; }
.auth-card .btn-login { min-height:53px; width:100%; margin-top:4px; border:0; border-radius:11px; color:#fff; background:linear-gradient(100deg,#65101c,#92182a); box-shadow:0 10px 24px rgba(104,16,28,.22); font-size:.88rem; font-weight:800; transition:.2s ease; }
.auth-card .btn-login:hover { color:#fff; transform:translateY(-2px); box-shadow:0 14px 28px rgba(104,16,28,.27); }
.auth-card .btn-login:focus-visible { box-shadow:0 0 0 4px rgba(143,16,34,.18); }
.auth-footer { margin-top:22px; padding-top:18px; border-top:1px solid #eee8e9; color:#93878b; font-size:.69rem; text-align:center; }
.error-msg { display:flex; align-items:flex-start; gap:.7rem; padding:.9rem 1rem; margin:0 0 18px; border:1px solid rgba(180,35,24,.15); border-radius:11px; color:#8a1f21; background:#fff1f1; font-size:.84rem; font-weight:700; }

@media (max-width: 960px) {
    .auth-grid { grid-template-columns:1fr; }
    .auth-panel { min-height:auto; padding:38px 34px; }
    .auth-title { font-size:2.25rem; }
    .auth-points { margin-top:24px; }
    .auth-point { min-height:125px; }
    .auth-card { padding:42px 34px; }
}
@media (max-width: 640px) {
    .auth-shell { padding:10px; }
    .auth-shell .portal-topbar { min-height:62px; margin-bottom:10px !important; padding:8px 10px !important; border-radius:13px !important; }
    .auth-shell .portal-brand-img { width:31px !important; height:40px !important; }
    .auth-shell .portal-brand-title { max-width:175px; overflow:hidden; font-size:.78rem !important; text-overflow:ellipsis; white-space:nowrap; }
    .auth-shell .portal-actions .portal-pill { min-height:36px; padding:6px 12px !important; font-size:.76rem !important; display:inline-flex !important; align-items:center; gap:6px; }
    .auth-shell .portal-actions .portal-pill i { margin:0; font-size:.82rem; }
    .auth-grid { min-height:calc(100vh - 92px); border-radius:17px; }
    .auth-panel { display:none; }
    .auth-card { padding:32px 22px; }
    .auth-card .admin-section-title { font-size:1.42rem; }
    .auth-input { font-size:16px; }
}
@media (prefers-reduced-motion: reduce) { .auth-point,.btn-login { transition:none !important; } }
