:root{--navy:#081f47;--blue:#006cf1;--cyan:#09b5e8;--green:#52d900;--line:#aec5e4;--grey:#52647f;--frame-width:1580px}
*,*::before,*::after{box-sizing:border-box}
html{min-width:320px;min-height:100%}
body{margin:0;min-height:100vh;font:400 15px/1.5 Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:var(--navy);background:linear-gradient(140deg,#bfd2eb 0%,#ecf4ff 34%,#fbfdff 66%,#bed8f9 100%);overflow-x:hidden}
button,input{font:inherit}button{cursor:pointer}
.page-bg{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.page-bg:before{content:"";position:absolute;width:118vw;height:48vh;left:-31vw;top:-22vh;border-radius:48%;transform:rotate(-21deg);box-shadow:0 2px 0 rgba(251,181,56,.90),0 5px 0 rgba(255,255,255,.9),0 18px 50px #94b7db66;background:linear-gradient(160deg,#8eacce 3%,#dae7f8 55%,#ffffffb0);opacity:.84}
.page-bg:after{content:"";position:absolute;left:20%;bottom:-31%;width:140%;height:48%;border-radius:50%;transform:rotate(-19deg);background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(193,219,246,.55));box-shadow:0 -2px 0 rgba(48,140,241,.8),0 -4px 0 rgba(255,255,255,.95),0 -22px 80px rgba(86,157,225,.18)}
.bg-sweep{position:absolute;display:block;pointer-events:none}.bg-sweep-top{width:80vw;height:5px;left:-20vw;top:20vh;transform:rotate(-25deg);background:linear-gradient(90deg,transparent,#ffe29b,#fff,transparent)}.bg-sweep-bottom{width:65vw;height:3px;right:-14vw;bottom:12vh;transform:rotate(-24deg);background:linear-gradient(90deg,transparent,#2c9be9,#fff,transparent);box-shadow:0 0 15px #4aaff6}
.login-page{min-height:100vh;padding:clamp(14px,2.2vh,28px) clamp(18px,3vw,50px);display:flex;justify-content:center;align-items:center}
.app-frame{width:min(100%,var(--frame-width));min-width:0;border-radius:30px;overflow:hidden;background:rgba(246,250,255,.90);border:1px solid rgba(255,255,255,.95);box-shadow:0 27px 82px rgba(26,80,144,.20),inset 0 1px rgba(255,255,255,.9)}
/* Cabeçalho compacto e limpo, fiel ao modelo aprovado. */
.frame-header{height:58px;min-height:58px;padding:5px clamp(34px,3.4vw,50px);display:flex;align-items:center;justify-content:space-between;gap:22px;background:linear-gradient(150deg,rgba(255,255,255,.99),rgba(247,250,255,.95))}
.header-brand,.header-meta{display:flex;align-items:center}.header-brand{min-width:0}
.header-logo{display:block;width:auto;height:44px;max-width:128px;object-fit:contain;object-position:left center;filter:drop-shadow(0 4px 7px rgba(29,74,120,.10))}
.header-meta{font-size:11px;font-weight:750;white-space:nowrap}.version-pill{border-radius:999px;background:#ecf4ff;border:1px solid #c3d5ef;padding:4px 10px;font-size:10px;color:#335385;font-weight:800}
/* A faixa é uma transição contínua, não blocos de cor. */
.frame-stripe{height:4px;background:linear-gradient(90deg,#0269f6 0%,#087fe9 22%,#0aa9dd 45%,#0ec8b6 64%,#35d75c 82%,#67dd00 100%);box-shadow:0 1px 0 rgba(255,255,255,.45) inset}
.frame-main{display:grid;grid-template-columns:52% 48%;min-height:clamp(575px,66vh,680px);background:linear-gradient(117deg,#d6e7f9 0%,#eff6ff 40%,#cddff3 100%)}
.welcome-panel{position:relative;min-width:0;overflow:hidden;display:flex;align-items:center;background:linear-gradient(145deg,#b8d3ef 0%,#d8e9fb 32%,#eef6ff 68%,#d2e5f9 100%);isolation:isolate}
.welcome-sheen{position:absolute;inset:0;background:radial-gradient(ellipse at 45% 57%,rgba(255,255,255,.92) 0%,rgba(247,251,255,.58) 34%,rgba(235,245,255,.18) 67%,transparent 91%);z-index:0}
/* As duas artes abaixo vêm do efeito da referência aprovada. */
.welcome-arc-art{position:absolute;z-index:1;top:0;left:0;width:100%;height:120px;background:url('../img/sysagenda-login-arc.png') left top/100% 100% no-repeat;pointer-events:none;opacity:.98;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 73%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 73%,transparent 100%)}
.welcome-content{position:relative;padding:40px clamp(42px,4.5vw,82px) 120px clamp(70px,5.2vw,92px);z-index:3;width:100%}
.sysagenda-logo-large{display:block;width:min(100%,540px);max-height:235px;height:auto;object-fit:contain;object-position:left center;filter:drop-shadow(0 8px 11px rgba(18,74,123,.16));margin-bottom:18px}
.welcome-content h1{font-size:clamp(31px,2.9vw,45px);font-weight:900;letter-spacing:-.052em;line-height:1.13;margin:0 0 10px;white-space:nowrap}
.welcome-content p{margin:0;color:#253e69;font-size:clamp(17px,1.45vw,23px);line-height:1.42;letter-spacing:-.015em}
.welcome-accent{height:4px;width:190px;margin-top:25px;border-radius:20px;background:linear-gradient(90deg,#056af6 0%,#019ed1 45%,#15c77d 70%,#69e300 100%)}
.welcome-wave-art{position:absolute;z-index:2;bottom:0;left:0;width:100%;height:175px;background:url('../img/sysagenda-login-wave.png') left bottom/100% 100% no-repeat;pointer-events:none;-webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 13%,#000 100%);mask-image:linear-gradient(to bottom,transparent 0%,#000 13%,#000 100%)}
.signin-side{padding:28px clamp(28px,3.4vw,64px) 28px clamp(20px,2vw,36px);display:flex;justify-content:center;align-items:center;background:linear-gradient(140deg,#e7f0fc 0%,#cbdcf2 100%)}
.signin-card{width:100%;max-width:590px;min-width:0;padding:clamp(35px,3.5vw,52px) clamp(34px,3.4vw,56px);border-radius:31px;background:linear-gradient(145deg,#fff 0%,#f7faff 100%);box-shadow:0 19px 43px rgba(41,84,138,.22),inset 0 1px rgba(255,255,255,.9);border:1px solid #fff}
.user-symbol{height:72px;width:72px;margin:0 auto 16px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(135deg,#fbfdff,#ecf5ff);border:2px solid #2095fa;border-bottom-color:#52e226;box-shadow:0 6px 11px #266da436;color:#104e9d}
.signin-card h2{font-size:clamp(24px,2.1vw,30px);line-height:1.2;letter-spacing:-.045em;font-weight:900;text-align:center;margin:0 0 30px}
.login-field{margin-top:21px}.login-field:first-child{margin-top:0}.login-field label{display:block;font-size:13px;font-weight:800;margin:0 0 8px}
.input-wrap{height:51px;border:1.5px solid #acc4e1;border-radius:9px;display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.62);transition:border-color .18s,box-shadow .18s}.input-wrap:focus-within{border-color:#0a8bf5;box-shadow:0 0 0 4px rgba(0,141,241,.12)}
.input-wrap .input-icon{color:#50627b;min-width:19px;text-align:center;margin-left:17px}.input-wrap input{width:100%;min-width:0;height:100%;padding:0 12px 0 0;border:0;outline:0;background:transparent;color:#102b53;font-size:14px}.input-wrap input::placeholder{color:#66748a;opacity:1}
.password-toggle{flex:none;margin-right:6px;width:40px;height:40px;border-radius:8px;border:0;background:transparent;color:#52647e}.password-toggle:hover,.password-toggle:focus-visible{background:#e0eeff;color:#0067e5}
.form-extras{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:21px 0 28px;font-size:12px}.remember-label{display:flex;align-items:center;gap:9px;white-space:nowrap;cursor:pointer;color:#253c63}.remember-label input{appearance:none;-webkit-appearance:none;display:grid;place-content:center;width:19px;height:19px;margin:0;border:1.5px solid #9ab4d4;border-radius:5px;background:#fff;cursor:pointer}.remember-label input:checked{background:#0078e9;border-color:#0078e9}.remember-label input:checked::after{content:'✓';color:#fff;font-size:13px;font-weight:900;line-height:1}
.forgot-link{background:none;border:0;text-decoration:underline;color:#0064e9;font-weight:700;font-size:12px;padding:6px 0;white-space:nowrap}.forgot-link:hover{color:#09418f}
.submit-login{min-height:58px;width:100%;border:0;border-radius:16px;padding:13px 22px;display:flex;align-items:center;justify-content:center;gap:20px;color:#fff;font-weight:900;font-size:16px;background:linear-gradient(99deg,#0056de 0%,#0477d4 27%,#039eaa 54%,#19c563 76%,#64dd00 100%);box-shadow:0 11px 22px #2189b94b,0 3px 2px #ffffff inset;transition:filter .18s,transform .18s}.submit-login:hover{filter:brightness(1.07);transform:translateY(-1px)}
.login-alert{display:flex;gap:10px;align-items:flex-start;background:#fff1ed;border:1px solid #f5b9a7;border-radius:11px;color:#9b2b13;font-size:13px;margin:-10px 0 20px;padding:11px 13px}
.frame-footer{min-height:88px;padding:9px 24px;display:flex;align-items:center;justify-content:center;gap:22px;background:linear-gradient(140deg,#f8fbff,#edf5ff 65%,#e4eefc);border-top:1px solid #d9e6f6}.ginfor-brand{display:flex;align-items:center;justify-content:center;height:68px;width:220px;overflow:visible;flex:none}.ginfor-brand img{display:block;width:215px;height:auto;max-height:68px;object-fit:contain;filter:drop-shadow(0 4px 7px rgba(20,66,110,.10))}.footer-divider{display:block;flex:none;width:1px;background:#a9bfdc;height:42px}.footer-credit{font-size:13px;color:#223f68;white-space:nowrap}.footer-credit b{font-weight:850;color:#061f45}.footer-credit small{display:block;margin-top:2px;color:#7488a5;font-size:10px}
.help-dialog{border:1px solid #d2e1f2;border-radius:20px;box-shadow:0 24px 80px #071b3959;max-width:min(92vw,420px);padding:27px 30px;color:#102c54}.help-dialog::backdrop{background:#051c3f94;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.help-icon{height:43px;width:43px;display:grid;place-items:center;border-radius:13px;background:#ecf6ff;color:#006bea}.dialog-close{width:37px;height:37px;border:0;border-radius:10px;background:#eef3fa;color:#213b5c}.help-dialog h2{margin:14px 0 10px;font-size:22px}.help-dialog p{color:#566a83;font-size:14px;line-height:1.65}.help-whatsapp{background:#0e9e57;color:#fff;border-radius:10px;padding:12px;display:flex;gap:8px;align-items:center;justify-content:center;text-align:center;text-decoration:none;font-size:14px;font-weight:800;margin-top:20px}.help-whatsapp:hover{background:#087d47}
.ui-icon{width:1em;height:1em;display:inline-block;flex:none;vertical-align:-.12em}.input-wrap .ui-icon.input-icon{width:19px;height:19px}.user-symbol .ui-icon{width:34px;height:34px}.submit-login .ui-icon{width:23px;height:23px}.help-icon .ui-icon{width:23px;height:23px}.dialog-close .ui-icon{width:20px;height:20px}.help-whatsapp .ui-icon{width:20px;height:20px}
.remember-label input:focus-visible,.forgot-link:focus-visible,.submit-login:focus-visible,.password-toggle:focus-visible{outline:3px solid #2b92e9;outline-offset:3px}
@media(max-width:1250px) and (min-width:791px){.welcome-content{padding-left:45px;padding-right:24px}.sysagenda-logo-large{width:min(100%,485px)}.welcome-content h1{font-size:clamp(28px,3vw,38px)}.signin-side{padding-inline:22px}.signin-card{padding:34px 30px}}
@media(max-width:790px){.login-page{padding:14px 12px;min-height:100svh}.app-frame{max-width:570px;border-radius:23px}.frame-header{height:54px;min-height:54px;padding:4px 16px}.header-logo{height:41px;max-width:122px}.frame-main{display:flex;flex-direction:column;min-height:0}.welcome-panel{min-height:215px;align-items:flex-start}.welcome-content{padding:18px 23px 52px}.sysagenda-logo-large{width:min(100%,292px);max-height:123px;margin-bottom:4px}.welcome-content h1{font-size:24px;margin-bottom:5px}.welcome-content p{font-size:12px}.welcome-accent{display:none}.welcome-break{display:none}.welcome-wave-art{height:88px}.welcome-arc-art{height:76px}.signin-side{padding:20px 20px 22px}.signin-card{max-width:440px;padding:26px 24px 28px;border-radius:23px}.user-symbol{height:55px;width:55px;margin-bottom:11px}.user-symbol .ui-icon{width:25px;height:25px}.signin-card h2{font-size:22px;margin-bottom:21px}.login-field{margin-top:17px}.frame-footer{gap:12px;padding:8px 12px;min-height:74px}.ginfor-brand{width:132px;height:48px}.ginfor-brand img{width:130px;max-height:48px}.footer-divider{height:30px}.footer-credit{font-size:9px;white-space:normal;max-width:210px}.footer-credit small{font-size:8px}}
@media(max-width:400px){.login-page{padding:7px 6px}.frame-header{height:50px;min-height:50px;padding:3px 10px}.header-logo{height:38px;max-width:112px}.version-pill{font-size:9px;padding:3px 7px}.welcome-panel{min-height:195px}.welcome-content{padding:13px 17px 44px}.sysagenda-logo-large{width:min(100%,252px);max-height:106px}.welcome-content h1{font-size:22px}.signin-side{padding:14px}.signin-card{padding:21px 18px 24px}.form-extras{font-size:11px}.forgot-link{font-size:11px}.ginfor-brand{width:112px;height:43px}.ginfor-brand img{width:110px;max-height:43px}.frame-footer{gap:7px}.footer-credit{font-size:8.5px}}
@media(max-height:900px) and (min-width:791px){.login-page{padding-top:10px;padding-bottom:10px}.frame-main{min-height:0}.welcome-content{padding-top:28px;padding-bottom:100px}.sysagenda-logo-large{width:min(100%,500px);max-height:218px}.signin-side{padding-top:18px;padding-bottom:18px}.signin-card{padding-top:34px;padding-bottom:34px}.frame-footer{min-height:82px}.ginfor-brand{height:61px}.ginfor-brand img{max-height:61px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
