:root{--auth-navy: #003595;--auth-navy-deep: #00266f;--auth-blue: #1986c8;--auth-cyan: #76bce9;--auth-green: #7bb32e;--auth-lime: #c5d87b;--auth-ink: #17324d;--auth-muted: #60758a;--auth-line: #d9e6ef}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:#edf4f8;color:var(--auth-ink);font-family:Montserrat,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}html.auth-pending body{overflow:hidden}html.auth-pending body>:not(#authApp){visibility:hidden}#authApp[hidden]{display:none!important}.auth-shell{position:fixed;inset:0;z-index:10000;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(420px,1.1fr);min-height:100dvh;background:radial-gradient(circle at 82% 18%,rgba(118,188,233,.3),transparent 31%),linear-gradient(135deg,#eef7fc,#f8fbfd 47%,#eef6d9);color:var(--auth-ink);font-family:Montserrat,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.auth-brand-panel{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:100%;padding:clamp(36px,6vw,84px);overflow:hidden;color:#fff;background:linear-gradient(150deg,var(--auth-navy-deep),var(--auth-navy) 66%,var(--auth-blue))}.auth-brand-panel:before,.auth-brand-panel:after{content:"";position:absolute;border-radius:999px;pointer-events:none}.auth-brand-panel:before{width:320px;height:320px;right:-190px;top:-120px;border:62px solid rgba(118,188,233,.48)}.auth-brand-panel:after{width:230px;height:230px;left:-135px;bottom:-130px;background:var(--auth-green);opacity:.95}.auth-brand,.auth-brand-copy,.auth-security-note{position:relative;z-index:1}.auth-brand{display:flex;align-items:center;gap:14px}.auth-monogram{display:grid;place-items:center;width:54px;height:54px;border:1px solid rgba(255,255,255,.38);border-radius:18px;background:#ffffff24;font-size:18px;font-weight:900;letter-spacing:-.08em;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.auth-brand strong,.auth-brand span{display:block}.auth-brand strong{font-size:15px;letter-spacing:.01em}.auth-brand span{margin-top:3px;color:#d8edfb;font-size:11px;font-weight:700}.auth-brand-copy{max-width:560px;margin:auto 0;padding:64px 0}.auth-kicker{margin:0 0 16px;color:var(--auth-lime);font-size:11px;font-weight:850;letter-spacing:.16em;text-transform:uppercase}.auth-brand-copy h1{margin:0;max-width:620px;font-size:clamp(38px,5vw,68px);line-height:1.02;letter-spacing:-.045em}.auth-brand-copy p:last-child{max-width:530px;margin:24px 0 0;color:#d7e9f7;font-size:15px;line-height:1.75}.auth-security-note{display:flex;align-items:center;gap:10px;width:fit-content;padding:10px 13px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:#00194847;color:#e8f5fd;font-size:11px;font-weight:700}.auth-security-dot{width:9px;height:9px;border-radius:50%;background:var(--auth-lime);box-shadow:0 0 0 5px #c5d87b26}.auth-form-panel{display:grid;place-items:center;padding:clamp(28px,6vw,80px)}.auth-card{width:min(500px,100%);padding:clamp(28px,4vw,46px);border:1px solid rgba(148,163,184,.28);border-radius:28px;background:#fffffff0;box-shadow:0 30px 90px #00266f24;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.auth-card h2{margin:0;color:var(--auth-navy);font-size:28px;letter-spacing:-.025em}.auth-card>p{margin:9px 0 24px;color:var(--auth-muted);font-size:13px;line-height:1.65}.auth-form{display:grid;gap:15px}.auth-field{display:grid;gap:7px}.auth-field label{color:#36516d;font-size:11px;font-weight:850}.auth-field input{width:100%;min-height:48px;padding:12px 14px;border:1px solid #c9d9e6;border-radius:12px;outline:none;background:#fff;color:var(--auth-ink);font:650 14px Montserrat,sans-serif;transition:border-color .18s,box-shadow .18s}.auth-field input:focus{border-color:var(--auth-blue);box-shadow:0 0 0 4px #1986c821}.auth-primary,.auth-secondary,.auth-link-button,.auth-signout{font-family:Montserrat,sans-serif;cursor:pointer}.auth-primary{min-height:49px;margin-top:4px;border:0;border-radius:12px;background:linear-gradient(100deg,var(--auth-navy),var(--auth-blue));color:#fff;font-size:12px;font-weight:850;box-shadow:0 12px 28px #00359538}.auth-primary:disabled,.auth-secondary:disabled{cursor:wait;opacity:.68}.auth-secondary{min-height:45px;border:1px solid #bfd4e4;border-radius:12px;background:#f7fbfe;color:var(--auth-navy);font-size:11px;font-weight:800}.auth-link-button{justify-self:center;padding:7px;border:0;background:transparent;color:var(--auth-blue);font-size:11px;font-weight:800}.auth-message{min-height:20px;margin:2px 0 0;padding:10px 12px;border-radius:10px;background:#eef7fc;color:#245879;font-size:11px;line-height:1.5}.auth-message:empty{display:none}.auth-message[data-type=error]{background:#fff0ef;color:#a33a2f}.auth-message[data-type=success]{background:#eef8dc;color:#3f6c18}.auth-help{margin-top:20px;padding-top:16px;border-top:1px solid var(--auth-line);color:#718399;font-size:10px;line-height:1.55;text-align:center}.auth-session{display:flex;align-items:center;gap:9px;margin-left:auto;padding-left:10px;border-left:1px solid rgba(255,255,255,.2);color:#fff;font-family:Montserrat,sans-serif}.auth-session-meta{display:grid;gap:1px;max-width:220px;text-align:right}.auth-session-meta strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.auth-role{color:var(--auth-lime);font-size:9px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}.auth-signout{padding:8px 10px;border:1px solid rgba(255,255,255,.28);border-radius:9px;background:#ffffff17;color:#fff;font-size:10px;font-weight:800}body.role-visualizador .only-edit,body.role-visualizador #editToggle,body.role-editor #openSettings{display:none!important}.portal-shell{min-height:100dvh;background:#edf4f8}.portal-shell[hidden],.portal-loading[hidden],.portal-empty[hidden],.report-frame[hidden],.editor-action[hidden]{display:none!important}.portal-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;min-height:76px;padding:12px clamp(18px,3vw,42px);border-bottom:1px solid rgba(255,255,255,.18);color:#fff;background:linear-gradient(105deg,var(--auth-navy-deep),var(--auth-navy) 62%,var(--auth-blue));box-shadow:0 10px 30px #00266f26}.portal-brand{display:flex;align-items:center;min-width:250px;gap:12px}.portal-monogram{display:grid;place-items:center;width:44px;height:44px;flex:0 0 auto;border:1px solid rgba(255,255,255,.32);border-radius:14px;background:#ffffff1f;font-size:15px;font-weight:900;letter-spacing:-.08em}.portal-brand strong,.portal-brand span{display:block}.portal-brand strong{font-size:14px;line-height:1.25}.portal-brand span{margin-top:3px;color:#cde8f8;font-size:10px;font-weight:700}.portal-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;width:100%}.portal-save-state{margin-right:4px;color:#d5e8f5;font-size:10px;font-weight:750;white-space:nowrap}.portal-save-state[data-type=success]{color:var(--auth-lime)}.portal-save-state[data-type=warning]{color:#ffe394}.portal-save-state[data-type=error]{max-width:260px;color:#ffd2d2;white-space:normal}.portal-action,.portal-upload{min-height:38px;padding:10px 13px;border:1px solid rgba(255,255,255,.25);border-radius:10px;background:#ffffff1a;color:#fff;font:800 10px Montserrat,sans-serif;cursor:pointer;transition:transform .16s ease,background .16s ease,border-color .16s ease}.portal-action:hover,.portal-upload:hover{border-color:#ffffff7a;background:#ffffff2e;transform:translateY(-1px)}.portal-action:disabled{cursor:wait;opacity:.6}#portalSave{border-color:transparent;background:var(--auth-green)}.portal-stage{position:relative;min-height:calc(100dvh - 76px);padding:14px}.report-frame{width:100%;height:calc(100dvh - 104px);border:1px solid #d5e3ed;border-radius:18px;background:#fff;box-shadow:0 18px 48px #00359517}.portal-loading,.portal-empty{position:absolute;inset:14px;display:grid;place-content:center;justify-items:center;padding:32px;border:1px solid #d5e3ed;border-radius:18px;background:radial-gradient(circle at 80% 18%,rgba(118,188,233,.2),transparent 30%),linear-gradient(145deg,#fff,#f2f8fb 72%,#f3f8e9);box-shadow:0 18px 48px #00359512;text-align:center}.portal-loading strong,.portal-empty h1{margin:18px 0 6px;color:var(--auth-navy);font-size:23px}.portal-loading small,.portal-empty p,.portal-empty small{max-width:570px;color:var(--auth-muted);font-size:12px;line-height:1.65}.portal-spinner{width:42px;height:42px;border:4px solid rgba(25,134,200,.18);border-top-color:var(--auth-blue);border-radius:50%;animation:portal-spin .8s linear infinite}.portal-empty-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#e2f2fb;color:var(--auth-blue);font-size:34px}.portal-empty .portal-upload{margin:12px 0 8px;border:0;background:linear-gradient(100deg,var(--auth-navy),var(--auth-blue));box-shadow:0 12px 28px #0035952e}@keyframes portal-spin{to{transform:rotate(360deg)}}@media(max-width:880px){.auth-shell{grid-template-columns:1fr;overflow:auto}.auth-brand-panel{min-height:auto;padding:30px 24px 36px}.auth-brand-copy{padding:46px 0 28px}.auth-brand-copy h1{font-size:clamp(34px,10vw,50px)}.auth-form-panel{padding:24px 16px 40px}.auth-session-meta{display:none}.portal-header{position:relative;align-items:flex-start;flex-direction:column}.portal-actions{justify-content:flex-start;flex-wrap:wrap}.portal-save-state{width:100%}.portal-stage{min-height:calc(100dvh - 150px);padding:8px}.report-frame{height:calc(100dvh - 166px);border-radius:12px}.portal-loading,.portal-empty{inset:8px;border-radius:12px}}@media print{#authApp,.auth-session,.portal-header{display:none!important}.portal-stage{min-height:0;padding:0}.report-frame{height:100vh;border:0;box-shadow:none}}
