/* NA PALMA DA MÃO — Riacho de Santana | Real photography + municipal crest
   This file layers over the Aurora concept; does not add tracking or a backend. */
:root{
 --brand:#0B50C4;--brandDeep:#072F86;--brandInk:#0D244F;--brandMint:#13B7AC;
 --photoAerial:url('https://triavante-riacho-conectado-demo.pages.dev/assets/riacho-hero-poster-20261110.jpg');
 --photoAerialAlt:url('https://triavante-riacho-conectado-demo.pages.dev/assets/hero1-riacho-original-poster-m2.jpg');
 --photoHealth:url('https://triavante-riacho-conectado-demo.pages.dev/assets/ref-news-health.jpg');
 --photoSchool:url('https://triavante-riacho-conectado-demo.pages.dev/assets/ref-news-school.jpg');
 --photoRural:url('https://triavante-riacho-conectado-demo.pages.dev/assets/news/photo-1500382017468-9049fed747ef.jpg');
 --photoEvent:url('https://triavante-riacho-conectado-demo.pages.dev/assets/news/photo-1531058020387-3be344556be6.jpg');
}
.topbar{
 background:linear-gradient(111deg,#082C7F 0%,#0853BB 53%,#0A68B9 100%);
 height:79px; padding:9px 15px;
 box-shadow:0 8px 24px rgba(6,29,97,.12);z-index:5;
}
.ref-brand{flex:1;gap:10px;max-width:246px}
.ref-brand-symbol{width:55px;height:55px;border-radius:16px;background:linear-gradient(135deg,#FFFFFF,#F1F6FF);box-shadow:0 7px 18px #001F6350,inset 0 1px 0 white;padding:5px;overflow:hidden;flex:none}
.ref-brand-symbol img{width:100%;height:100%;object-fit:contain;filter:none}
.ref-brand-copy{display:flex;align-items:flex-start;flex-direction:column;gap:4px}
.ref-brand-copy b{font-size:15.5px;letter-spacing:.2px;line-height:.97;font-weight:950}
.ref-brand-copy small{font-weight:700;color:#DCEAFF;font-size:9px;line-height:1.1}
.ref-header-right{gap:6px}
.ref-head-action{background:#FFFFFF16;box-shadow:inset 0 1px 0 #FFFFFF3D,0 4px 13px #082B7740}
.ref-home-intro{background:#0B4596;isolation:isolate;overflow:hidden;min-height:196px}
.ref-home-intro::before{
 content:"";position:absolute;z-index:-2;inset:0;
 background:linear-gradient(102deg,#05286DE8 0%,#06357CCB 42%,#0D4C8C72 100%),var(--photoAerial) 54% 49%/cover no-repeat;
 filter:saturate(1.18);pointer-events:none;
}
.ref-home-intro::after{border:1px solid #FFFFFF4A;box-shadow:0 0 0 22px #FFFFFF0A,0 0 0 45px #FFFFFF08}
.ref-greeting h1{font-weight:920;font-size:27px;text-shadow:0 2px 12px #05174666}
.ref-greeting p{font-size:12.5px;color:#F1F8FF;text-shadow:0 1px 9px #051746AA}
.ref-overline{color:#78F3E8;letter-spacing:1.32px}
.ref-search{height:51px;border:1px solid #FFFFFFA8;box-shadow:0 10px 22px #051E5E55}
.ref-home-content{background:linear-gradient(180deg,#F4F8FF,#F8FAFF 70%,#F3F7FD)}
.ref-square{background:linear-gradient(142deg,#fff,#FBFCFF);box-shadow:0 8px 18px #0B36711B;border-radius:18px;border-color:#E1E8F5}
.ref-square-icon{border:1px solid #FFFFFFB8;box-shadow:0 8px 14px #1B5EB31E}
.ref-square b{font-weight:880}
.ref-promo{
 background:linear-gradient(96deg,#031F5CEB 0%,#0A3068B3 44%,#05245924 100%),var(--photoAerialAlt) 50% 47%/cover no-repeat;
 min-height:155px;border:1px solid #D2E2FFAA;
 box-shadow:0 15px 29px #062E6D37;
}
.ref-promo:before{content:"";position:absolute;inset:-20px;pointer-events:none;border-radius:30px;background:linear-gradient(130deg,#FFFFFF11,transparent 46%)}
.ref-promo strong{font-size:20px;line-height:1.12;letter-spacing:-.7px}
.ref-promo-tag{color:#A1FFF0}
.ref-promo-arrow{box-shadow:0 7px 17px #041848A8}
.ref-feature-item{background:linear-gradient(105deg,#FFF,#FAFCFF);border-color:#E3EAF6;box-shadow:0 7px 18px #0B367112}
.ref-feature-item b{font-weight:850}
.ref-module-head{isolation:isolate;overflow:hidden}
.ref-module-head::before{
 content:"";position:absolute;inset:0;z-index:-1;
 background:linear-gradient(102deg,#072C74E9 0%,#114D9BD6 45%,#0A478A64 100%),var(--photoAerial) center 44%/cover no-repeat;
 opacity:.88;
}
.ref-module-head.tone-orange::before{
 background:linear-gradient(105deg,#B9480AF0 0%,#D86916D8 46%,#DC7C1F68 100%),var(--photoSchool) center/cover no-repeat;
}
.ref-module-head.tone-pink::before{
 background:linear-gradient(105deg,#A51E64EC 0%,#C63879D6 48%,#CA568575 100%),var(--photoHealth) center 36%/cover no-repeat;
}
.ref-module-head.tone-green::before{
 background:linear-gradient(102deg,#064C5AEF 0%,#057A73D6 48%,#05746C5A 100%),var(--photoAerialAlt) center 38%/cover no-repeat;
}
.ref-module-head.tone-purple::before{
 background:linear-gradient(105deg,#49277FEF 0%,#5D3494DF 44%,#7049B470 100%),var(--photoEvent) center/cover no-repeat;
}
.ref-module-head h1{text-shadow:0 2px 9px #06235C4D;letter-spacing:-.8px}
.ref-module-head p{font-weight:520}
.ref-head-decoration{opacity:.37;transform:rotate(-12deg) scale(.88);border-color:#FFFFFF48}
.ref-service-body{background:#F6F9FF}
.ref-city-photo{
 height:143px;
 background:linear-gradient(0deg,#071F4E70,#0B3C750D 55%),var(--photoAerialAlt) center 45%/cover no-repeat;
 border-bottom:0;position:relative;
}
.ref-city-photo:after{
 content:"RIACHO DE SANTANA • BAHIA";color:white;font-size:9px;letter-spacing:1.55px;font-weight:900;
 position:absolute;bottom:12px;left:17px;text-shadow:0 2px 9px #021B57D6;
}
.ref-rural-photo{
 height:145px;border-radius:17px;border:1px solid #DCE8F4;
 background:linear-gradient(0deg,#07385282,transparent 55%),var(--photoRural) center 51%/cover no-repeat;
}
.ref-rural-photo:after{content:"COMUNIDADES RURAIS • IMAGEM ILUSTRATIVA"}
.ref-event-feature{
 background:linear-gradient(0deg,#051E54E5 0%,#0A347773 45%,#0A3C7423 100%),var(--photoEvent) center 48%/cover no-repeat;
 min-height:209px;box-shadow:0 12px 22px #12336A23;
}
.ref-context-photo{
 position:relative;display:flex;align-items:flex-end;min-height:116px;border-radius:17px;margin-bottom:15px;
 padding:16px;overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat;
 border:1px solid #DDE7F6;box-shadow:0 10px 19px #07336D18;
}
.ref-context-photo:after{content:"IMAGEM ILUSTRATIVA";position:absolute;top:10px;right:10px;font-size:8px;font-weight:850;letter-spacing:.85px;color:#FFF;background:#092A5A9C;border-radius:8px;padding:6px 7px}
.ref-context-photo span{color:white;font-size:17px;font-weight:900;line-height:1.14;letter-spacing:-.35px;text-shadow:0 2px 12px #051935B5;max-width:210px}
.ref-health-photo{background-image:linear-gradient(0deg,#780A4DA6,#9A3F6D12 65%),var(--photoHealth)}
.ref-school-photo{background-image:linear-gradient(0deg,#A5530EC4,#AD6C2615 70%),var(--photoSchool)}
.ref-login-intro{
 background:linear-gradient(180deg,#062765D6,#073E91CE 73%,#126BBDCC),var(--photoAerial) center 45%/cover no-repeat;
 min-height:264px;padding:18px 23px 42px;justify-content:flex-start;gap:6px;
}
.ref-login-intro img{
 display:block;width:95px;height:95px;object-fit:contain;background:#FFFFFFEB;border:1px solid #fff;
 border-radius:23px;padding:11px;box-shadow:0 12px 25px #021E61A3;
 filter:none;margin-bottom:3px;
}
.ref-login-overline{font-size:9px;font-weight:850;letter-spacing:1.5px;color:#D9F4FF}
.ref-login-intro h1{font-size:27px;max-width:300px;text-shadow:0 2px 12px #02235BAF;letter-spacing:-.7px}
.ref-login-intro p{font-size:12px}
.ref-login-body{margin-top:-34px;padding:0 18px 35px}
.ref-login-card{padding:22px 19px 17px;gap:9px;border:1px solid #DCE7F8;box-shadow:0 23px 50px #0A327E31;border-radius:24px}
.ref-demo-label{color:#1D61BE;letter-spacing:1.1px;font-size:9px}
.ref-login-card h2{font-size:23px;letter-spacing:-.55px;margin:4px 0 1px}
.ref-login-card p{font-size:11px;line-height:1.5;margin:0 0 4px}
.ref-login-card .ref-form-label{font-size:11px;color:#233B66;font-weight:850;margin-top:4px}
.ref-login-field{min-height:51px;border:1px solid #DCE6F4;background:#F9FBFF;border-radius:13px;box-shadow:inset 0 1px 0 #fff}
.ref-login-field input{border:0;outline:0;flex:1;min-width:0;background:transparent;font-size:13px;height:47px;color:#152E5B}
.ref-login-field input::placeholder{color:#9CAFC3}
.ref-login-field:focus-within{border-color:#1C75D3;box-shadow:0 0 0 3px #D9EAFD}
.ref-show-pass{border:0;color:#4071B4;display:grid;place-items:center;background:none;padding:6px;border-radius:8px}
.ref-login-primary{background:linear-gradient(115deg,#074FCA,#1477E5);box-shadow:0 10px 22px #0752BE45;margin-top:6px}
.ref-login-error{color:#B42335!important;background:#FFF0F1;padding:10px;border:1px solid #F5C4CE;border-radius:10px;font-weight:750;font-size:11px}
.ref-login-error[hidden]{display:none!important}
.ref-login-demo-credentials{margin-top:0;background:#EDF7FF;border:1px dashed #BDD8F7;border-radius:12px;padding:10px 12px;display:flex;gap:8px;justify-content:space-between;align-items:center;flex-wrap:wrap;font-size:10px}
.ref-login-demo-credentials span{font-size:9px;font-weight:850;color:#3C75AC}
.ref-login-demo-credentials b{color:#184D9A;font-size:10px}
.ref-login-guest{color:#1267CD;font-weight:850;margin:2px 0;padding:9px}
.ref-welcome{
 background:linear-gradient(0deg,#071B58EE,#0D4296C7 60%,#073373E1),var(--photoAerial) center 54%/cover no-repeat;
}
.ref-welcome-logo{height:125px;width:125px;border-radius:26px;padding:12px;background:#F8FCFF;box-shadow:0 18px 36px #03163888;filter:none;object-fit:contain}
.ref-welcome-landscape{
 background:linear-gradient(0deg,#03265B80,transparent 70%),var(--photoAerialAlt) center 41%/cover no-repeat;
 border-top:1px solid #FFFFFF4D;border-bottom:1px solid #FFFFFF36;
}
.ref-welcome h1{font-size:37px;letter-spacing:-1px}
.ref-welcome h2{max-width:240px}
.screen .ref-success{background:radial-gradient(circle at 50% 10%,#D3F9DE,transparent 56%),#F9FBFF}
@media(max-width:390px){
 .ref-brand-copy b{font-size:14px}
 .ref-brand-symbol{width:48px;height:48px;padding:5px}
 .ref-brand{gap:8px}
 .ref-header-right{gap:4px}
 .ref-head-action{height:34px;width:34px}
 .ref-login-intro{min-height:254px;padding-top:15px}
 .ref-login-intro img{width:86px;height:86px}
 .ref-login-card{padding:18px 17px;gap:7px}
}
@media(max-width:345px){.ref-brand-copy b{font-size:12px}.ref-brand-copy small{font-size:8px}.ref-head-action:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.ref-square,.ref-feature-item,.ref-show-pass{transition:none}}
