:root{
--bg:#12100E;
--bg-card:#1E1B17;
--ink:#F5F2EC;
--ink-muted:#B9B2A6;
--ink-faint:#8A8377;
--green:#469C62;
--green-light:#6DBE86;
--amber: #459B61;
--amber-ink:#0f240d;
--line:rgba(245,242,236,0.10);
--line-strong:rgba(245,242,236,0.18);
--danger:#E38B8B;
color-scheme: dark;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
margin:0;
background:var(--bg);
color:var(--ink);
font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
display:flex; align-items:center; justify-content:center;
padding:24px;
padding-top:calc(24px + env(safe-area-inset-top,0px));
padding-bottom:calc(24px + env(safe-area-inset-bottom,0px));
}

/* CARREGANDO */
.box_carregando {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.box_carregando::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    height: 100%;
    width: 50%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        var(--primary, #b1ffba) 30%, 
        #96f1a7 70%, 
        #f6f8f2 100%
    );
    border-radius: 10px;
    box-shadow: 0 0 10px #42ff8a;
    animation: laserOutbound 0.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.box_carregando::after {
    content: '';
    position: absolute;
    top: 0;
    right: -60%;
    height: 100%;
    width: 55%;
    background: linear-gradient(
        270deg, 
        transparent 0%, 
        #05ff43 20%, 
        #00ff6a 60%, 
        #ffffff 100%
    );
    border-radius: 10px;
    box-shadow: 0 0 14px #00ff84, 0 0 22px #71ffb1;
    animation: laserInbound 1s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes laserOutbound {
    0% {
        left: -60%;
    }
    100% {
        left: 110%;
    }
}
@keyframes laserInbound {
    0%, 62% {
        right: -60%;
        opacity: 0;
    }
    65% {
        opacity: 1;
    }
    92% {
        right: 110%;
        opacity: 1;
    }
    95%, 100% {
        right: 110%;
        opacity: 0;
    }
}

#back_load {
    background-color: var(--corpo-load-bkg, rgba(18, 18, 18, 0.92));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    position: fixed;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.load_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    max-width: 70%;
    width: 85%;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.load_logo_box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 85px;
}
.load_logo_box img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(59, 156, 91, 0.8));
    animation: logoPulse 1.2s ease-in-out infinite alternate;
}
.load_logo_box::after {
    content: '';
    position: absolute;
    width: 68px;
    height: 68px;
    transform: rotate(45deg); 
    border-radius: 10px;
    padding: 2px;
    background: conic-gradient(
        from var(--angle), 
        transparent 55%, 
        var(--primary, #3B9C5B) 75%, 
        #42ff8a 92%, 
        #ffffff 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: drop-shadow(0 0 8px #42ff8a) drop-shadow(0 0 2px #3B9C5B);
    animation: traceLosango 1.1s linear infinite;
}

@keyframes traceLosango {
    to {
        --angle: 360deg;
    }
}

.load_text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--corpo-load-txt, #ffffff);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0.9;
}
.load_dots {
    animation: blinkDots 1s infinite steps(4, jump-none);
}

@keyframes logoPulse {
    0% { transform: scale(0.95); filter: drop-shadow(0 0 6px rgba(59, 156, 91, 0.5)); }
    100% { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(66, 255, 138, 0.95)); }
}
@keyframes blinkDots {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

h1,h2{font-family:"Sora",system-ui,sans-serif; margin:0;}
:focus-visible{outline: 1px solid var(--amber); outline-offset:3px; border-radius:4px; filter: drop-shadow(0 0 1px var(--green-light));}

.card{
width:100%; max-width:400px;
background:var(--bg-card); border:1px solid var(--line); border-top: 1px solid #17b757; border-radius: 0px 0px 20px 20px;
box-shadow:0 30px 60px -30px rgba(0,0,0,0.6);
}
.log_cont{
    padding: 32px;
}
.brand{display:flex; align-items:center; gap:10px; justify-content:center; margin-top: 30px; margin-bottom:28px;}
.brand img{height: auto; max-width:120px; border-radius:10px;}
.brand span{font-family:"Sora"; font-weight:700; font-size:1.15rem;}

h1{font-size:1.35rem; text-align:center; margin-bottom:6px;}
.subtitle{text-align:center; color:var(--ink-muted); font-size:0.92rem; margin-bottom:28px;}

form{display:flex; flex-direction:column; gap:16px;}
.field label{display:block; font-size:0.86rem; color:var(--ink-muted); margin-bottom:7px; font-weight:500;}
.field input{
width:100%; background:var(--bg); border:1px solid var(--line-strong); color:var(--ink);
border-radius:10px; padding:13px 14px; font-size:0.97rem; font-family:inherit;
}
.field input:focus{border-color:var(--green-light);}

.senha-wrap{position:relative;}
.senha-wrap input{padding-right:44px;}
.toggle-senha{
position:absolute; right:6px; top:50%; transform:translateY(-50%);
background:none; border:none; color:var(--ink-faint); cursor:pointer;
padding:8px; line-height:0; border-radius:6px;
}
.toggle-senha:hover{color:var(--ink);}

.erro{
display:none; background:rgba(227,139,139,0.12); border:1px solid rgba(227,139,139,0.35);
color:var(--danger); font-size:0.86rem; padding:10px 12px; border-radius:10px;
}
.erro.show{display:block;}

button[type="submit"]{
margin-top:6px;
display:flex; align-items:center; justify-content:center; gap:8px;
background: linear-gradient(135deg, #40e278 0%, #89fba7 40%, #17b757 100%); color:var(--amber-ink); border:none;
border-radius:999px; font-weight:700; font-size:0.98rem; font-family:inherit;
padding:13px 20px; cursor:pointer;
transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
button[type="submit"]:hover{transform:translateY(-1px); box-shadow:0 10px 24px -10px rgba(62, 227, 81, 0.55);}
button[type="submit"]:disabled{opacity:0.65; cursor:default; transform:none; box-shadow:none;}

.spinner{
width:16px; height:16px; border-radius:50%;
border:2px solid rgba(36,28,13,0.35); border-top-color:var(--amber-ink);
animation:girar 0.7s linear infinite; display:none;
}
button[type="submit"].loading .spinner{display:inline-block;}
button[type="submit"].loading .texto-btn{display:none;}
@keyframes girar{to{transform:rotate(360deg);}}

.rodape{
    background-image: linear-gradient(135deg, #40e278 0%, #89fba7 40%, #17b757 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-top:24px;
    text-align:center;
    font-size:0.8rem;
}

@media (prefers-reduced-motion: reduce){
.spinner{animation:none;}
}

#borda_pcs{
	background-color: #469c62;
	border-radius: 3px;
	height: 3px;
	width: 0%;
	display: block;
	position: relative;
	top: 0px;
	left: 0px;
	transition: width 0.1s ease-out;
}
#borda_pcs.processando {
  width: 100%;
  background-image: linear-gradient(90deg, #0daf6e 25%, #387c50 50%, #01ff8d 75%);
  background-size: 200% 100%;
  animation: loading-skeleton 0.5s infinite linear;
  transition: width 0.1s ease-out;
}
@keyframes loading-skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: 0% 0;
  }
}