:root {
--primary: #EB1A1F;
--primary-dark: #C91519;
--secondary: #2D2D2D;
--surface: #FFFFFF;
--background: #F5F6F8;
--border: #E6E8EC;
--muted: #6D737C;
--success: #1F9D68;
--shadow: 0 28px 80px rgba(20, 24, 32, 0.14);
}

* {
box-sizing: border-box;
}

html,
body {
min-height: 100%;
}

body {
margin: 0;
font-family: "Inter", sans-serif;
color: var(--secondary);
background: var(--background);
}

button,
input {
font: inherit;
}

.login-page {
min-height: 100vh;
display: grid;
grid-template-columns: minmax(0, 1.08fr) minmax(500px, 0.92fr);
overflow: hidden;
}

.brand-panel {
position: relative;
display: flex;
align-items: center;
min-height: 100vh;
padding: clamp(48px, 6vw, 100px);
color: #fff;
background: #080000 url('../img/login-global.svg') center / cover no-repeat;
isolation: isolate;
}

/* A arte pronta da Global View. Aparece INTEIRA (contain): título e
   os três selos estão na imagem e não podem ser cortados. A sobra do
   painel é preenchida pela própria arte, ampliada e desfocada, para
   não virar faixa lisa em cima e embaixo. */
.brand-panel-imagem {
padding: 0;
overflow: hidden;
background: #f3f3f3;
}

.brand-panel-imagem::before {
content: "";
position: absolute;
inset: -40px;
border: 0;
border-radius: 0;
width: auto;
height: auto;
background: url('../img/login-painel.webp?v=3') center / cover no-repeat;
filter: blur(28px) saturate(1.1);
opacity: .55;
z-index: 0;
}

.brand-arte {
position: absolute;
inset: 0;
z-index: 1;
width: 100%;
height: 100%;
object-fit: contain;
object-position: center;
animation: revealLeft .7s ease both;
}

.brand-panel::before,
.brand-panel::after {
content: none;
position: absolute;
border: 1px solid rgba(255,255,255,.15);
border-radius: 50%;
z-index: -1;
}

.brand-panel::before {
width: 440px;
height: 440px;
left: -150px;
bottom: -170px;
}

.brand-panel::after {
width: 320px;
height: 320px;
right: -115px;
top: -80px;
}

.brand-content {
width: 100%;
max-width: 750px;
animation: revealLeft .7s ease both;
}

.brand-logo {
display: inline-flex;
align-items: center;
gap: 13px;
margin-bottom: clamp(24px, 3vw, 48px);
}

.brand-logo img {
display: block;
width: clamp(230px, 24vw, 350px);
max-width: 100%;
height: auto;
/* logo-login-branco.png ja vem branco, com o visto vermelho */
}

.brand-mark {
width: 52px;
height: 52px;
display: grid;
place-items: center;
border-radius: 16px;
color: var(--primary);
background: #fff;
box-shadow: 0 14px 35px rgba(0,0,0,.16);
}

.brand-name {
margin: 0;
font-size: 1.5rem;
font-weight: 800;
letter-spacing: -.04em;
}

.brand-subtitle {
margin: 2px 0 0;
font-size: .67rem;
letter-spacing: .2em;
text-transform: uppercase;
opacity: .78;
}

.eyebrow {
display: inline-flex;
align-items: center;
gap: 9px;
margin-bottom: 22px;
padding: 8px 13px;
border: 1px solid #ff202d;
border-radius: 999px;
font-size: .78rem;
font-weight: 700;
letter-spacing: .04em;
background: rgba(30,0,0,.65);
backdrop-filter: blur(10px);
}

.brand-title {
max-width: 720px;
margin: 0;
font-size: clamp(2.0rem, 4.0vw, 4.25rem);
line-height: 1.08;
letter-spacing: -.045em;
font-weight: 800;
}

.brand-title strong {
color: #fff;
font-weight: 800;
}

.brand-title em {
color: #ff202d;
font-style: normal;
}

.brand-description {
max-width: 660px;
margin: 26px 0 0;
font-size: clamp(1rem, 1.35vw, 1.16rem);
line-height: 1.45;
color: rgba(255,255,255,.80);
}

.brand-title::after {
content: "";
display: block;
width: 72px;
height: 6px;
margin-top: 24px;
background: #ff202d;
border-radius: 1px;
}

.brand-benefits {
display: flex;
gap: 18px;
margin-top: clamp(30px, 4vw, 58px);
}

.brand-benefit {
display: flex;
align-items: center;
gap: 12px;
flex: 1;
min-width: 0;
font-size: clamp(.7rem, .9vw, 1rem);
line-height: 1.45;
}

.brand-benefit-icon {
display: grid;
place-items: center;
width: clamp(40px, 4.5vw, 64px);
height: clamp(40px, 4.5vw, 64px);
flex-shrink: 0;
border: 1px solid #a90c15;
border-radius: 16px;
background: linear-gradient(145deg, #a30710, #390005);
color: #ffb4b7;
font-size: clamp(20px, 2vw, 30px);
}

@media (min-width: 851px) and (max-width: 1100px) {
.brand-benefits { flex-wrap: wrap; }
.brand-benefit { flex-basis: 100%; }
}

.feature-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 13px;
margin-top: 46px;
}

.feature-item {
min-height: 115px;
padding: 20px;
border: 1px solid rgba(255,255,255,.17);
border-radius: 20px;
background: rgba(255,255,255,.09);
backdrop-filter: blur(12px);
}

.feature-icon {
font-size: 1.2rem;
margin-bottom: 17px;
opacity: .94;
}

.feature-item strong {
display: block;
margin-bottom: 4px;
font-size: .92rem;
}

.feature-item span {
font-size: .78rem;
color: rgba(255,255,255,.68);
}

.form-panel {
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 55px clamp(28px, 5vw, 86px);
background:
radial-gradient(circle at 88% 8%, rgba(235,26,31,.07), transparent 24%),
var(--background);
}

.form-panel::before {
content: "";
position: absolute;
top: 0;
right: 0;
width: 150px;
height: 8px;
background: var(--primary);
border-radius: 0 0 0 30px;
}

.login-wrapper {
width: 100%;
max-width: 470px;
animation: revealUp .7s .1s ease both;
}

.mobile-logo {
display: none;
}

.login-card {
padding: clamp(32px, 4vw, 48px);
border: 1px solid rgba(255,255,255,.85);
border-radius: 30px;
background: rgba(255,255,255,.92);
box-shadow: var(--shadow);
backdrop-filter: blur(18px);
}

.login-heading {
margin-bottom: 34px;
}

.login-heading .small-title {
display: block;
margin-bottom: 10px;
color: var(--primary);
font-size: .76rem;
font-weight: 800;
letter-spacing: .12em;
text-transform: uppercase;
}

.login-heading h1 {
margin: 0;
font-size: clamp(2rem, 3vw, 2.55rem);
font-weight: 800;
letter-spacing: -.055em;
}

.login-heading p {
margin: 12px 0 0;
color: var(--muted);
line-height: 1.65;
}

.form-label {
margin-bottom: 9px;
font-size: .85rem;
font-weight: 700;
}

.input-shell {
position: relative;
}

.input-shell .input-icon {
position: absolute;
top: 50%;
left: 18px;
z-index: 2;
color: #979DA6;
transform: translateY(-50%);
transition: .25s ease;
}

.input-shell .form-control {
height: 58px;
padding: 0 50px 0 50px;
border: 1px solid var(--border);
border-radius: 16px;
color: var(--secondary);
background: #FAFAFB;
box-shadow: none;
transition: .25s ease;
}

.input-shell .form-control::placeholder {
color: #A7ACB4;
}

.input-shell .form-control:focus {
border-color: rgba(235,26,31,.58);
background: #fff;
box-shadow: 0 0 0 5px rgba(235,26,31,.08);
}

.input-shell:focus-within .input-icon {
color: var(--primary);
}

.password-toggle {
position: absolute;
top: 50%;
right: 11px;
z-index: 3;
width: 38px;
height: 38px;
display: grid;
place-items: center;
border: 0;
border-radius: 11px;
color: #858B94;
background: transparent;
transform: translateY(-50%);
transition: .2s ease;
}

.password-toggle:hover {
color: var(--primary);
background: rgba(235,26,31,.07);
}

.form-check-input {
border-color: #C9CDD3;
box-shadow: none !important;
}

.form-check-input:checked {
border-color: var(--primary);
background-color: var(--primary);
}

.form-check-label,
.forgot-link {
font-size: .82rem;
}

.forgot-link {
color: var(--secondary);
font-weight: 700;
text-decoration: none;
transition: .2s ease;
}

.forgot-link:hover {
color: var(--primary);
}

.btn-login {
width: 100%;
height: 58px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 11px;
border: 0;
border-radius: 17px;
color: #fff;
font-weight: 800;
background: var(--primary);
box-shadow: 0 15px 30px rgba(235,26,31,.23);
transition: .25s ease;
}

.btn-login:hover {
color: #fff;
background: var(--primary-dark);
box-shadow: 0 18px 36px rgba(235,26,31,.30);
transform: translateY(-2px);
}

.btn-login:active {
transform: translateY(0);
}

.security-note {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
margin-top: 23px;
color: #8C929B;
font-size: .73rem;
text-align: center;
}

.security-note i {
color: var(--success);
}

.page-footer {
margin-top: 25px;
color: #8D939C;
font-size: .72rem;
text-align: center;
}

.swal2-popup {
border-radius: 24px !important;
font-family: "Inter", sans-serif !important;
}

.swal2-confirm {
border-radius: 12px !important;
background: var(--primary) !important;
box-shadow: none !important;
}

@keyframes revealLeft {
from { opacity: 0; transform: translateX(-28px); }
to { opacity: 1; transform: translateX(0); }
}

@keyframes revealUp {
from { opacity: 0; transform: translateY(28px); }
to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
.login-page {
grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr);
}

.brand-panel {
padding: 54px;
}

.brand-title {
font-size: 3.25rem;
}

.feature-grid {
grid-template-columns: 1fr;
}

.feature-item {
min-height: auto;
display: grid;
grid-template-columns: 34px 1fr;
gap: 5px 10px;
padding: 15px 17px;
}

.feature-icon {
grid-row: span 2;
margin: 3px 0 0;
}
}

@media (max-width: 850px) {
.login-page {
display: block;
}

.brand-panel {
display: none;
}

.form-panel {
min-height: 100vh;
padding: 34px 20px;
}

.mobile-logo {
display: flex;
justify-content: center;
align-items: center;
gap: 11px;
margin-bottom: 24px;
}

.mobile-logo .brand-mark {
width: 46px;
height: 46px;
border: 1px solid rgba(235,26,31,.12);
box-shadow: 0 10px 26px rgba(22,25,31,.10);
}

.mobile-logo .brand-name {
font-size: 1.24rem;
}

.mobile-logo .brand-subtitle {
color: var(--muted);
}
}

@media (max-width: 480px) {
.form-panel {
align-items: flex-start;
padding-top: 24px;
}

.login-card {
padding: 28px 22px;
border-radius: 24px;
}

.login-heading {
margin-bottom: 27px;
}

.login-heading h1 {
font-size: 2rem;
}

.login-options {
align-items: flex-start !important;
flex-direction: column;
gap: 13px;
}
}

#recover {
display: none;	
}

/* Redefinir senha (22/10/2026) ---------------------------------------- */

.voltar-login {
display: inline-flex;
align-items: center;
gap: 12px;
margin-bottom: 30px;
color: var(--secondary);
font-size: .92rem;
font-weight: 500;
text-decoration: none;
transition: .2s ease;
}

.voltar-login:hover {
color: var(--primary);
}

.aviso-senha {
display: flex;
align-items: center;
gap: 18px;
margin: 4px 0 26px;
padding: 16px 18px;
border-radius: 16px;
background: #FDECEE;
}

.aviso-senha-icone {
width: 44px;
height: 44px;
display: grid;
flex-shrink: 0;
place-items: center;
border-radius: 50%;
color: var(--primary);
background: #FAD3D6;
font-size: 1.05rem;
}

.aviso-senha p {
margin: 0;
color: var(--secondary);
font-size: .85rem;
line-height: 1.55;
}

.resultado-senha {
margin: 20px 0 0;
padding: 14px 16px;
border-radius: 14px;
font-size: .88rem;
line-height: 1.5;
}

.resultado-senha.resultado-erro {
color: #B4141A;
background: #FDECEE;
}

.resultado-senha.resultado-ok {
margin: 0 0 20px;
color: #10734A;
background: #E7F7EF;
}

.login-card [hidden] {
display: none !important;
}
