html.auth-required body > :not(.torres-auth-gate) { display: none !important; }
html.auth-required body { visibility: visible !important; }
.torres-auth-gate.is-checking .torres-auth-card > form,
.torres-auth-gate.is-checking .torres-auth-card > small { display: none; }
.torres-auth-opening { margin: 22px 0 4px; text-align: center; color: #12625a; font-weight: 800; }
.torres-auth-gate { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; min-height: 100dvh; padding: 22px; color: #102b2a; background: linear-gradient(135deg, rgba(4,24,27,.92), rgba(18,98,90,.78)), var(--torres-auth-background, url("assets/icon-512.png")) center/cover no-repeat; }
.torres-auth-card { width: min(440px, 100%); padding: clamp(22px, 5vw, 38px); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.torres-auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.torres-auth-brand img { width: 64px; height: 64px; border-radius: 16px; }
.torres-auth-brand strong, .torres-auth-brand span { display: block; }
.torres-auth-brand strong { font-size: 1.55rem; }
.torres-auth-card form { display: grid; gap: 14px; }
.torres-auth-card label { display: grid; gap: 6px; font-weight: 700; }
.torres-auth-card input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #9aafac; border-radius: 10px; font: inherit; }
#torresCreateAccount { color: #0b342e !important; background: #d7efe1 !important; border: 1px solid #75aa94 !important; opacity: 1 !important; font-weight: 800 !important; }
#torresCreateAccount:hover, #torresCreateAccount:focus-visible { color: #061f1c !important; background: #bfe4d0 !important; border-color: #397962 !important; }
.torres-password-field { position: relative; display: block; }
.torres-password-field input { padding-right: 82px; }
.torres-password-field button { position: absolute; top: 5px; right: 5px; min-height: 38px; border: 0; background: transparent; color: #12625a; font-weight: 800; }
.torres-auth-link { border: 0; background: transparent; color: #12625a; text-decoration: underline; }
#torresAuthStatus[data-kind="error"], #torresSecurityStatus { color: #8f1d18; }
#torresAuthStatus[data-kind="success"] { color: #12625a; }
.torres-security-dialog { width: min(520px, calc(100% - 28px)); border: 0; border-radius: 18px; padding: 0; }
.torres-security-dialog::backdrop { background: rgba(0,0,0,.48); }
.torres-security-dialog form { display: grid; gap: 14px; padding: 22px; }
.torres-security-dialog header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.torres-security-dialog label { display: grid; gap: 6px; font-weight: 700; }
.torres-security-dialog input { min-height: 46px; padding: 9px 11px; }
.torres-register-dialog form { max-height: min(84dvh, 760px); overflow-y: auto; }
.torres-register-dialog { position: fixed; inset: 0; margin: auto; max-height: calc(100dvh - 28px); color: #102b2a; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.38); }
.torres-register-dialog[open] { display: block; }
.torres-register-close { color: #102b2a !important; background: #e7eef0 !important; border: 1px solid #78918e !important; opacity: 1 !important; font-weight: 800 !important; }
.torres-legal-link { display: inline; padding: 0; border: 0; color: #075f51; background: transparent; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.torres-auth-legal-dialog { width: min(760px, calc(100% - 20px)); max-height: 92dvh; color: #102b2a; background: #fff; }
.torres-auth-legal-dialog form { grid-template-rows: auto minmax(0, 1fr) auto; max-height: 92dvh; overflow: hidden; }
.torres-auth-legal-dialog footer { display: flex; justify-content: flex-end; padding-top: 12px; }
.torres-auth-legal-body { overflow-y: auto; line-height: 1.55; padding-right: 6px; }
.torres-auth-legal-body h3 { margin: 18px 0 5px; }
.torres-auth-legal-body p { margin: 0 0 10px; }
.torres-register-consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 500 !important; }
.torres-register-consent input { width: 20px; min-height: 20px; }
@media (prefers-reduced-motion: reduce) { .torres-auth-gate, .torres-auth-card { animation: none !important; transition: none !important; } }
