/* Solo la pantalla de acceso; no afecta al dashboard ni al piloto local. */
body.cloud-appearance:has(#loginPanel:not([hidden])){display:grid;place-items:center;min-height:100vh;min-height:100svh;box-sizing:border-box;padding:24px 16px;background:#f5f6f7;position:relative;isolation:isolate}
body.cloud-appearance:has(#loginPanel:not([hidden]))::before,
body.cloud-appearance:has(#loginPanel:not([hidden]))::after{content:'';position:fixed;inset:auto 0 0;height:24vh;pointer-events:none;z-index:-1;background:#dbe0e5;opacity:.23;clip-path:polygon(0 58%,9% 72%,23% 25%,36% 65%,50% 45%,63% 74%,80% 20%,91% 56%,100% 42%,100% 100%,0 100%)}
body.cloud-appearance:has(#loginPanel:not([hidden]))::after{height:17vh;opacity:.2;clip-path:polygon(0 50%,15% 78%,32% 37%,45% 75%,62% 25%,78% 65%,94% 36%,100% 62%,100% 100%,0 100%)}
#loginPanel.cloud-login{box-sizing:border-box;width:min(100%,460px);max-width:460px;margin:0;padding:32px 36px 28px;border-radius:26px;background:#ffffffbf;border:1px solid #dce0e580;box-shadow:0 14px 40px #202b3a0a,inset 0 1px 0 #fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#182d44}
#loginPanel .login-brand{display:block;width:238px;max-width:100%;height:auto;margin:0 auto 17px}
#loginPanel .login-heading{text-align:center}
#loginPanel .badge-pilot{display:inline-block;background:#eaf3ed;color:#3f6b50;border:1px solid #dbe9df;border-radius:7px;padding:5px 9px;font-size:11px;font-weight:500}
#loginPanel h1{font-size:26px;line-height:1.25;letter-spacing:-.5px;margin:21px 0 8px}
#loginPanel .sub{font-size:14px;line-height:1.5;color:#65717e;margin:0 0 24px}
#loginPanel .field{margin:0 0 18px}
#loginPanel label{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:#35495c;margin-bottom:8px}
#loginPanel .login-icon{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#loginPanel input{box-sizing:border-box;width:100%;height:55px;padding:0 15px;background:#ffffffed;border:1px solid #d9dfe5;border-radius:13px;color:#1b3046;font:16px 'Segoe UI',sans-serif;box-shadow:inset 0 1px 2px #18283803}
#loginPanel input:focus{outline:2px solid #7294b430;outline-offset:1px;border-color:#7894ad}
#loginPanel .login-password{position:relative}
#loginPanel .login-password input{padding-right:57px}
#loginPanel .password-toggle{position:absolute;right:6px;top:6px;width:43px;height:43px;display:grid;place-items:center;padding:0;background:transparent;border:0;border-radius:9px;color:#536b7e;cursor:pointer}
#loginPanel .password-toggle:hover{background:#eef1f4}
#loginPanel .password-toggle[aria-pressed=true] .eye-slash{display:none}
#loginPanel #cloudSubmit{display:flex;align-items:center;justify-content:center;gap:11px;width:100%;min-height:54px;border-radius:12px;border:1px solid #17324e;background:linear-gradient(180deg,#203e5a,#19354f);color:#fff;font-size:15px;font-weight:650;box-shadow:0 4px 9px #152d4510}
#loginPanel #cloudSubmit:hover:not(:disabled){background:#24435f}
#loginPanel #cloudSubmit:disabled{opacity:.65;cursor:wait}
#loginPanel button:focus-visible,#loginPanel a:focus-visible{outline:2px solid #567e9f;outline-offset:3px}
#loginPanel .login-recovery{text-align:center;margin:20px 0 0}
#loginPanel a{color:#365c7c;font-size:13px;text-decoration:none}
#loginPanel a:hover{text-decoration:underline}
#loginPanel .login-footer{border-top:1px solid #e1e5e9;margin-top:22px;padding-top:20px;text-align:center}
#loginPanel .login-footer a{display:inline-flex;align-items:center;gap:7px}
#loginPanel #loginMessage{font-size:13px;line-height:1.5;overflow-wrap:anywhere;margin:16px 0 0}
#loginPanel #loginMessage:empty{display:none}
@supports not (backdrop-filter:blur(10px)){#loginPanel.cloud-login{background:#fafbfc}}
@media(max-width:520px){body.cloud-appearance:has(#loginPanel:not([hidden])){padding:18px 14px}#loginPanel.cloud-login{padding:26px 23px;border-radius:24px}#loginPanel h1{font-size:24px}#loginPanel .login-brand{width:220px}}
@media(max-height:680px) and (min-width:521px){body.cloud-appearance:has(#loginPanel:not([hidden])){padding:16px}#loginPanel.cloud-login{padding-top:22px;padding-bottom:20px}#loginPanel h1{margin-top:15px}#loginPanel .sub{margin-bottom:18px}}
/* Bisel de cristal perceptible y proporción compacta de la referencia. */
#loginPanel.cloud-login{width:min(100%,500px);max-width:500px;height:auto;min-height:0;align-self:center;padding:24px 34px 22px;border:1px solid #ffffffed;background:linear-gradient(135deg,#ffffffde 0%,#ffffff85 48%,#f4f5f78f 100%);box-shadow:inset 0 0 0 1px #ffffffa6,inset 0 2px 5px #fff,inset 0 -2px 5px #ffffffd9,0 0 0 1px #a8b0bc26,0 18px 38px #25334615,0 4px 9px #25334608;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
#loginPanel .login-brand{width:210px;margin-bottom:12px}
#loginPanel h1{margin:15px 0 6px;font-size:27px}
#loginPanel .sub{margin-bottom:19px;font-size:13px}
#loginPanel .field{gap:0;margin-bottom:13px}
#loginPanel label{margin-bottom:6px}
#loginPanel input{height:52px;background:#ffffff70;box-shadow:inset 0 1px 3px #24344908,0 1px 0 #ffffffd9}
#loginPanel .password-toggle{top:4px}
#loginPanel #cloudSubmit{min-height:52px;box-shadow:inset 0 1px 1px #ffffff45,0 4px 9px #152d4518}
#loginPanel .login-recovery{margin-top:15px}
#loginPanel .login-footer{margin-top:17px;padding-top:16px}
@media(max-width:520px){#loginPanel.cloud-login{padding:22px 23px 20px}#loginPanel h1{font-size:24px}#loginPanel .login-brand{width:200px}}
