*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
}

body.login-page { background: #ffffff; }

.alert-ok {
    background: #f0fff4; border: 1px solid #9ae6b4;
    border-left: 4px solid #38a169; border-radius: 8px;
    color: #276749; font-size: .88rem; padding: 12px 16px; margin-bottom: 16px;
}
.alert-erro {
    background: #fff5f5; border: 1px solid #feb2b2;
    border-left: 4px solid #e53e3e; border-radius: 8px;
    color: #c53030; font-size: .88rem; padding: 12px 16px; margin-bottom: 16px;
}

.badge-sit   { border-radius: 20px; padding: 3px 12px; font-size: .74rem; font-weight: 600; }
.sit-ativo   { background: #cce5ff; color: #004085; }
.sit-aposent { background: #e2e3e5; color: #383d41; }
.sit-pensao  { background: #fff3cd; color: #856404; }
.sit-ex      { background: #f0e6ff; color: #5a189a; }

#pa-toast {
    display: none; position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    background: #1a3a6b; color: #fff; padding: 14px 20px; border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2); font-size: .9rem;
}
#pa-toast.erro { background: #c0392b; }
@keyframes fadeUp { from { opacity:0; transform:translateY(10px) } to { opacity:1; transform:translateY(0) } }

body.login-page { min-height: 100vh; display: flex; }

.panel-left {
    flex: 0 0 42%;
    background: #ffffff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 48px 40px;
    border-right: 1px solid #e9ecef;
    box-shadow: 4px 0 20px rgba(0,0,0,.06);
}
.brand-area            { text-align: center; }
.brand-area h2         { color: #1a3a6b; font-size: 1.1rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.brand-divider         { width: 40px; height: 3px; background: #c0392b; border-radius: 2px; margin: 0 auto 14px; }
.brand-area p          { color: #888; font-size: .85rem; line-height: 1.6; max-width: 240px; }
.panel-left-footer     { position: absolute; bottom: 20px; color: #bbb; font-size: .7rem; }

.panel-right  { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.form-box     { width: 100%; max-width: 380px; }
.form-title   { color: #1a3a6b; font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.form-subtitle { color: #999; font-size: .85rem; margin-bottom: 32px; }

.alert-login {
    background: #fff5f5; border: 1px solid #feb2b2;
    border-left: 4px solid #e53e3e; border-radius: 8px;
    color: #c53030; font-size: .85rem; padding: 12px 16px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px; line-height: 1.4;
}
.alert-login::before {
    content: '!'; display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; min-width: 22px; border-radius: 50%;
    background: #e53e3e; color: #fff; font-weight: 700; font-size: .75rem;
}
.alert-login.bloqueado         { background: #fffbf0; border-color: #f6ad55; border-left-color: #dd6b20; color: #7b341e; }
.alert-login.bloqueado::before { content: '⚠'; background: #dd6b20; font-size: .65rem; }

.field-group           { margin-bottom: 20px; }
.field-group label     { display: block; color: #555; font-size: .76rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }
.field-group input     { width: 100%; padding: 13px 16px; background: #f8f9fb; border: 1.5px solid #dde1e9; border-radius: 8px; color: #1a1a1a; font-size: .95rem; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.field-group input::placeholder { color: #bbc; }
.field-group input:focus        { border-color: #1a3a6b; background: #fff; box-shadow: 0 0 0 3px rgba(26,58,107,.1); }
.field-group input:disabled     { opacity: .5; cursor: not-allowed; }

.input-eye             { position: relative; display: flex; align-items: center; }
.input-eye input       { padding-right: 46px; }
.input-eye button      { position: absolute; right: 14px; background: none; border: none; cursor: pointer; padding: 0; color: #bbc; display: flex; align-items: center; transition: color .2s; }
.input-eye button:hover { color: #1a3a6b; }
.input-eye button svg  { width: 20px; height: 20px; }
.hint-padrao           { font-size: .72rem; color: #bbb; margin-top: 6px; text-align: right; }

.btn-entrar {
    width: 100%; padding: 14px; margin-top: 8px;
    background: #c0392b; border: none; border-radius: 8px;
    color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(192,57,43,.3);
}
.btn-entrar:hover:not(:disabled) { background: #a93226; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(192,57,43,.4); }
.btn-entrar:disabled              { opacity: .5; cursor: not-allowed; }
.form-footer { text-align: center; margin-top: 28px; color: #ccc; font-size: .72rem; }

.portal-nav {
    background: #ffffff; padding: 0 24px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.08); border-bottom: 1px solid #e9ecef;
}
.portal-nav .brand          { display: flex; align-items: center; gap: 14px; color: #1a3a6b; font-weight: 700; font-size: .95rem; letter-spacing: .5px; text-decoration: none; }
.portal-nav .brand .divider-v { width: 1px; height: 22px; background: #dde1e9; }
.portal-nav .right          { display: flex; align-items: center; gap: 16px; }
.portal-nav .user-name      { color: #555; font-size: .88rem; }
.portal-nav .btn-sair       { color: #666; font-size: .85rem; text-decoration: none; padding: 6px 14px; border-radius: 6px; border: 1px solid #dde1e9; transition: background .2s, color .2s; }
.portal-nav .btn-sair:hover { background: #f0f2f5; color: #1a3a6b; }

.pa-card                { border: none; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.08); margin-bottom: 24px; }
.pa-card .card-header   { background: #fff; border-bottom: 2px solid #f0f2f5; border-radius: 12px 12px 0 0 !important; font-weight: 700; color: #1a3a6b; font-size: .92rem; padding: 14px 20px; }
.pa-card .card-header i { margin-right: 8px; opacity: .7; }
.pa-card .card-body     { padding: 20px; }

.foto-wrap  { position: relative; width: 110px; height: 110px; margin: 0 auto 10px; }
.foto-img   { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid #e9ecef; }
.foto-ph    { width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(135deg,#1a3a6b,#2e6db4); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #fff; }
.foto-btn   { position: absolute; bottom: 2px; right: 2px; width: 32px; height: 32px; border-radius: 50%; background: #c0392b; border: 2px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .72rem; transition: background .2s; overflow: hidden; }
.foto-btn:hover { background: #a93226; }
.foto-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 100px; }

.info-item  { margin-bottom: 14px; }
.info-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #999; margin-bottom: 2px; }
.info-val   { font-size: .88rem; color: #333; font-weight: 500; }
.s-label    { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: #999; letter-spacing: .6px; border-bottom: 1px solid #f0f2f5; padding-bottom: 6px; margin: 4px 0 14px; }

.form-control       { border-radius: 8px; border: 1.5px solid #dde1e9; background: #f8f9fb; font-size: .9rem; }
.form-control:focus { border-color: #1a3a6b; background: #fff; box-shadow: 0 0 0 3px rgba(26,58,107,.1); }
label.fl            { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #666; margin-bottom: 5px; }

.btn-salvar       { background: #1a3a6b; border: none; border-radius: 8px; color: #fff; font-weight: 700; font-size: .88rem; letter-spacing: .8px; padding: 11px 28px; transition: background .2s, transform .15s; }
.btn-salvar:hover { background: #0d2347; transform: translateY(-1px); color: #fff; }
.btn-senha        { background: #c0392b; border: none; border-radius: 8px; color: #fff; font-weight: 700; font-size: .88rem; letter-spacing: .8px; padding: 11px 28px; transition: background .2s, transform .15s; }
.btn-senha:hover  { background: #a93226; transform: translateY(-1px); color: #fff; }

.input-eye-wrap        { position: relative; }
.input-eye-wrap input  { padding-right: 42px; }
.input-eye-wrap .eye-btn       { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #aab; cursor: pointer; padding: 0; }
.input-eye-wrap .eye-btn:hover { color: #1a3a6b; }

@media (max-width: 700px) {
    body.login-page    { flex-direction: column; }
    .panel-left        { flex: none; padding: 32px 24px 28px; }
    .panel-left-footer { display: none; }
    .brand-area p      { display: none; }
    .panel-right       { padding: 32px 20px 40px; }
    .form-title        { font-size: 1.25rem; }
}
