.login.clean-login{width:min(100%,390px);margin:0 auto;padding:20px 22px 24px;min-height:100dvh;display:flex;flex-direction:column;justify-content:center;background:transparent;color:#182131}
.clean-login h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.clean-login .login-secret button svg{width:22px;height:22px}
.clean-login .login-brandmarks{display:flex;flex-direction:column;align-items:center;gap:0;margin:0 0 16px}
.clean-login .login-brandmarks img{display:block;object-fit:contain;background:transparent;border:0;box-shadow:none;border-radius:0}
.clean-login .login-brandmarks img:first-child{width:180px;height:auto}

.clean-login form{width:100%;margin:0}.clean-login label{font-size:14px;font-weight:650;margin:10px 0 7px}
.clean-login input,.clean-login select{min-height:52px;font-size:16px;border:1px solid #d8e1e9;border-radius:12px;background:#fff;color:#182131;padding:12px}
.clean-login .login-secret{display:flex;align-items:stretch;border:1px solid #d8e1e9;border-radius:12px;background:#fff;overflow:hidden}
.clean-login .login-secret input{min-width:0;border:0;border-radius:0;flex:1;letter-spacing:.06em}.clean-login .login-secret button{width:48px;min-height:50px;border:0;border-radius:0;background:transparent;color:#506478;padding:8px}
.clean-login [data-login-mode]{background:transparent;border:0;font-size:13px;padding:10px 0;min-height:44px;color:#185778}.clean-login [data-login-mode][hidden]{display:none}
.clean-login button[type=submit]{min-height:52px;border-radius:12px;font-size:16px;margin-top:16px;background:#183b50;color:white;border:0}
.clean-login :focus-visible{outline:3px solid #49aabb;outline-offset:2px}.clean-login #login-error{color:#a01e2d;font-size:13px}
body:has(.clean-login){background:#f8fafc}html[data-owner-theme=dark] body:has(.clean-login){background:#f8fafc;color:#182131}
@media(max-height:650px){.login.clean-login{padding-top:12px;justify-content:flex-start}.clean-login .login-brandmarks{gap:8px;margin-bottom:10px}.clean-login .login-brandmarks img:first-child{width:150px}}
/* ============================================
   CORRECCIÓN login-ui.css
   Reemplaza las reglas indicadas
   ============================================ */

/* G8: Título visible (reemplaza .clean-login h1) */
.clean-login h1 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 24px;
    color: var(--ink, #182131);
    line-height: 1.2;
}

/* M17 + M14: Inputs con variables de tema (reemplaza .clean-login label) */
.clean-login label {
    font-size: 14px;
    font-weight: 650;
    margin: 10px 0 7px;
    color: var(--ink, #182131);
    display: block;
}

/* M17 + M14: Inputs con variables de tema (reemplaza .clean-login input, .clean-login select) */
.clean-login input,
.clean-login select {
    min-height: 52px;
    font-size: 16px;
    border: 1px solid var(--border, #d8e1e9);
    border-radius: 12px;
    background: var(--surface-solid, #fff);
    color: var(--ink, #182131);
    padding: 12px;
    width: 100%;
}

/* M14: Campo contraseña unificado (reemplaza .clean-login .login-secret) */
.clean-login .login-secret {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border, #d8e1e9);
    border-radius: 12px;
    background: var(--surface-solid, #fff);
    overflow: hidden;
}

/* M14: Input dentro de .login-secret sin borde propio */
.clean-login .login-secret input {
    min-width: 0;
    border: 0;
    border-radius: 0;
    flex: 1;
    letter-spacing: .06em;
    background: transparent;
    color: var(--ink, #182131);
}

/* M14: Botón ojo con buen contraste (reemplaza .clean-login .login-secret button) */
.clean-login .login-secret button {
    width: 48px;
    min-height: 50px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink-muted, #506478);
    padding: 8px;
    cursor: pointer;
}

/* M17: Botón cambiar modo con variables (reemplaza .clean-login [data-login-mode]) */
.clean-login [data-login-mode] {
    background: transparent;
    border: 0;
    font-size: 13px;
    padding: 10px 0;
    min-height: 44px;
    color: var(--ink-muted, #185778);
    cursor: pointer;
}

.clean-login [data-login-mode][hidden] {
    display: none;
}

/* M17: Focus con variable de tema (reemplaza .clean-login :focus-visible) */
.clean-login :focus-visible {
    outline: 3px solid var(--accent-ring, #49aabb);
    outline-offset: 2px;
}

/* M17: Error con buen contraste */
.clean-login #login-error {
    color: var(--error, #a01e2d);
    font-size: 13px;
    margin-top: 8px;
}

/* G8: Ajuste responsive del título (añadir a @media existente) */
@media(max-height:650px){
    .login.clean-login {
        padding-top: 12px;
        justify-content: flex-start;
    }
    .clean-login .login-brandmarks {
        gap: 8px;
        margin-bottom: 10px;
    }
    .clean-login .login-brandmarks img:first-child {
        width: 150px;
    }
    .clean-login h1 {
        font-size: 20px;
        margin-bottom: 16px;
    }
}
.clean-login h1 {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 0 24px;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: var(--ink, #182131);
    line-height: 1.2;
}
.theme-selector,
.theme-picker {
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: 32px;
    padding-bottom: 8px;
}
.theme-selector::before,
.theme-picker::before {
    color: var(--ink, #182131);
}

.clean-login .login-brandmarks img.login-marca:first-child{width:132px;height:auto}
.clean-login .login-brandmarks img.login-marca:first-child{width:150px;height:auto;background:transparent!important;padding:0!important;box-shadow:none!important;border-radius:0!important;filter:drop-shadow(0 6px 14px rgba(21,32,51,.18))}

/* ===== Acceso «cristal líquido» (decisión del dueño, 25 nov 2026): tarjeta de vidrio sobre un paisaje de la bahía, esfera de cristal y botón con flecha.
   Todo CSS (sin imágenes ni scripts): ligero en teléfonos modestos. El desenfoque va SOLO en la tarjeta (nunca en un ancestro de un elemento fixed). ===== */
html body:has(.clean-login){background:transparent;color:#142038}
html body:has(.clean-login)::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:radial-gradient(60% 38% at 78% 16%,rgba(255,226,190,.9),rgba(255,226,190,0) 70%),
   radial-gradient(50% 30% at 12% 24%,rgba(190,215,255,.85),rgba(190,215,255,0) 70%),
   linear-gradient(180deg,#c9defc 0%,#e3e2fb 36%,#fde5da 58%,#b7d9ea 59%,#9ccbe3 78%,#86bdd9 100%)}
html body:has(.clean-login)::after{content:"";position:fixed;left:0;right:0;bottom:41%;height:21%;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,#9db3dd 0%,#c3d0ee 100%);opacity:.9;
  clip-path:polygon(0 100%,0 66%,9% 52%,18% 64%,31% 24%,43% 58%,53% 40%,66% 70%,79% 34%,91% 60%,100% 46%,100% 100%)}
html body:has(.clean-login) #app{min-height:100dvh;display:grid;place-items:center;padding:20px 14px}
html body:has(.clean-login) .login.clean-login{position:relative;width:min(100%,400px);min-height:0;margin:0 auto;padding:26px 24px 26px;border-radius:34px;justify-content:flex-start;
  background:linear-gradient(155deg,rgba(255,255,255,.62),rgba(255,255,255,.30));border:1px solid rgba(255,255,255,.85);
  -webkit-backdrop-filter:blur(22px) saturate(1.7);backdrop-filter:blur(22px) saturate(1.7);
  box-shadow:inset 0 1.5px 1px rgba(255,255,255,.95),inset 0 -1px 1px rgba(255,255,255,.4),0 24px 60px rgba(60,80,150,.26),0 4px 12px rgba(60,80,150,.12)}
html body:has(.clean-login) .login.clean-login::before{content:"";position:absolute;left:-20px;top:-26px;width:78px;height:78px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle at 32% 26%,#fff 0 9%,rgba(255,255,255,.2) 30%,rgba(255,255,255,0) 31%),
   radial-gradient(circle at 70% 78%,rgba(120,170,255,.55),rgba(120,170,255,0) 55%),
   radial-gradient(circle at 50% 50%,rgba(230,240,255,.55),rgba(160,190,255,.35) 70%,rgba(255,255,255,.8) 100%);
  border:1px solid rgba(255,255,255,.9);box-shadow:inset 0 -6px 12px rgba(80,110,200,.25),0 10px 22px rgba(60,80,150,.25)}
html body:has(.clean-login) .clean-login .login-brandmarks{margin:6px 0 12px}
html body:has(.clean-login) .clean-login .login-brandmarks img:first-child{width:150px}
html body:has(.clean-login) .clean-login label{color:#142038;font-size:13px;letter-spacing:.02em}
html body:has(.clean-login) .clean-login input,html body:has(.clean-login) .clean-login select{background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.95);border-radius:18px;
  box-shadow:inset 0 1px 2px rgba(60,80,150,.10),0 1px 0 rgba(255,255,255,.8);color:#142038}
html body:has(.clean-login) .clean-login input:focus{background:rgba(255,255,255,.9);outline:0;border-color:#4a7be0;box-shadow:0 0 0 3px rgba(74,123,224,.28)}
html body:has(.clean-login) .clean-login .login-secret{background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.95);border-radius:18px;box-shadow:inset 0 1px 2px rgba(60,80,150,.10),0 1px 0 rgba(255,255,255,.8)}
html body:has(.clean-login) .clean-login .login-secret input{background:transparent;border:0;box-shadow:none}
html body:has(.clean-login) .clean-login .login-secret:focus-within{background:rgba(255,255,255,.9);border-color:#4a7be0;box-shadow:0 0 0 3px rgba(74,123,224,.28)}
html body:has(.clean-login) .clean-login form button.gold.block[type=submit],html body:has(.clean-login) .clean-login button[type=submit]{position:relative;min-height:56px;border-radius:28px;margin-top:20px;font-weight:700;letter-spacing:.02em;color:#fff;border:1px solid rgba(255,255,255,.55);
  background:linear-gradient(135deg,#2a56d8 0%,#4f93ff 100%) !important;box-shadow:inset 0 1.5px 1px rgba(255,255,255,.55),0 12px 26px rgba(42,86,216,.38);transition:transform .15s ease,box-shadow .15s ease}
html body:has(.clean-login) .clean-login form button.gold.block[type=submit]::after,html body:has(.clean-login) .clean-login button[type=submit]::after{content:"→";position:absolute;right:8px;top:50%;margin-top:-20px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:20px;
  background:linear-gradient(135deg,#1c3fb5,#3a73e6);box-shadow:inset 0 1px 1px rgba(255,255,255,.5)}
html body:has(.clean-login) .clean-login button[type=submit]:active{transform:scale(.98)}
html body:has(.clean-login) .clean-login :focus-visible{outline:3px solid #2a56d8;outline-offset:2px}
html body:has(.clean-login) .clean-login #login-error{color:#a01e2d;background:rgba(255,255,255,.7);border-radius:12px;padding:8px 12px}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html body:has(.clean-login) .login.clean-login{background:rgba(255,255,255,.9)}}
@media (prefers-reduced-transparency:reduce){html body:has(.clean-login) .login.clean-login{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}}
@media (prefers-reduced-motion:reduce){html body:has(.clean-login) .clean-login button[type=submit]{transition:none}}
@media(max-width:440px){html body:has(.clean-login) .login.clean-login::before{left:-6px;top:-22px;width:68px;height:68px}}
@media(max-height:650px){html body:has(.clean-login) #app{place-items:start center}html body:has(.clean-login) .clean-login .login-brandmarks img:first-child{width:112px}}

/* Entrada con PIN en aparatos de la empresa */
.pin-bar{display:grid;gap:8px;margin:2px 0 4px}
.pin-note{margin:0;font-size:.85rem;opacity:.9}
.pin-switch{min-height:44px;border:0;background:transparent;text-decoration:underline;cursor:pointer;font:inherit;font-size:.9rem;color:inherit;text-align:left;padding:4px 0}
