/* ==========================================================================
   Login de Davinci 2026-10 — diseño «Mosaico».
   Fondo de triángulos con los tonos del cubo de IBS (lo dibuja public/js/ibs-login.js; cerca del
   cursor se encienden en naranja), tarjeta blanca con el formulario y «Davinci» en grande.
   Se puede reutilizar en las demás pantallas de acceso (2FA, recuperación de contraseña).
   ========================================================================== */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url('../fonts/ibs/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url('../fonts/ibs/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url('../fonts/ibs/sora-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url('../fonts/ibs/sora-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.ibs-login {
    --naranja: #eb6b4e;
    --naranja-2: #f08468;
    --azul: #3c4a59;
    --gris: #8292a6;
    --tinta: #26313d;
    --texto: #4b5a6a;
    --linea: #e1e8f0;
    position: fixed;
    inset: 0;
    z-index: 10;
    overflow-y: auto;
    background: #eef3f9;
    font-family: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--texto);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
.ibs-login *, .ibs-login *::before, .ibs-login *::after { box-sizing: border-box; }
.ibs-login-mosaico { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.ibs-login-escena {
    position: relative;
    min-height: 100%;
    display: grid;
    align-items: center;
    padding: 40px 16px;
}

/* Tarjeta con el formulario */
.ibs-login-tarjeta {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin-left: clamp(0px, 8vw, 140px);
    padding: 34px 32px 28px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(38, 49, 61, .16);
    display: grid;
    gap: 20px;
}
.ibs-login-cabeza { display: flex; align-items: center; gap: 14px; }
.ibs-login-cabeza img { width: 52px; height: 52px; }
.ibs-login-cabeza div { display: grid; }
.ibs-login-cabeza b { font-family: 'Sora', 'Manrope', sans-serif; font-weight: 600; color: var(--tinta); font-size: 1.1rem; }
.ibs-login-cabeza span { color: var(--gris); font-size: 13px; }

.ibs-login h1 { margin: 0; font-family: 'Sora', 'Manrope', sans-serif; font-weight: 600; color: var(--tinta); font-size: 1.55rem; letter-spacing: -.02em; }
.ibs-login .sub { margin: 4px 0 0; color: var(--gris); }

.ibs-login form { display: grid; gap: 14px; margin: 0; }
.ibs-login .campo { display: grid; gap: 6px; }
.ibs-login .campo label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--gris); margin: 0; }
.ibs-login .entrada { position: relative; }
.ibs-login .entrada input {
    width: 100%; height: 46px; border: 1px solid var(--linea); border-radius: 12px; padding: 0 14px;
    background: #fff; color: var(--tinta); font: inherit; transition: border-color .15s, box-shadow .15s;
}
.ibs-login .entrada input:focus { outline: none; border-color: var(--naranja); box-shadow: 0 0 0 4px rgba(235, 107, 78, .12); }
.ibs-login .entrada.con-ojo input { padding-right: 46px; }
.ibs-login .ojo {
    position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border: 0; border-radius: 9px;
    background: transparent; color: var(--gris); cursor: pointer; display: grid; place-items: center; font-size: 1.15rem;
}
.ibs-login .ojo:hover { background: #f1f5f9; }
.ibs-login .fila { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.ibs-login .fila label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; margin: 0; }
.ibs-login .fila input[type="checkbox"] { accent-color: var(--naranja); width: 16px; height: 16px; margin: 0; }
.ibs-login .liga { color: var(--naranja); text-decoration: none; font-weight: 600; }
.ibs-login .liga:hover { text-decoration: underline; }
.ibs-login .primario {
    height: 48px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #c84e33, #b8432b);   /* 2026-10-18: texto blanco legible (AA) */
    color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 10px 24px rgba(235, 107, 78, .28);
    transition: transform .12s, box-shadow .12s;
}
.ibs-login .primario:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(235, 107, 78, .32); }
.ibs-login .o { display: flex; align-items: center; gap: 10px; color: var(--gris); font-size: 12px; }
.ibs-login .o::before, .ibs-login .o::after { content: ""; flex: 1; height: 1px; background: var(--linea); }
.ibs-login .google { display: flex; justify-content: center; min-height: 44px; }
.ibs-login .aviso { padding: 10px 12px; border-radius: 10px; font-size: 13px; margin: 0; }
.ibs-login .aviso.error { background: #fdeceb; color: #a83a3a; }
.ibs-login .aviso.ok { background: #e9f6ef; color: #2f7a52; }
.ibs-login :focus-visible { outline: 3px solid rgba(235, 107, 78, .35); outline-offset: 2px; }

/* «Davinci» en grande, abajo a la derecha */
.ibs-login-grande { position: fixed; right: clamp(16px, 6vw, 120px); bottom: 40px; text-align: right; display: grid; gap: 6px; pointer-events: none; }
.ibs-login-grande b { font-family: 'Sora', 'Manrope', sans-serif; font-weight: 400; font-size: clamp(2.6rem, 1.4rem + 4vw, 5.4rem); letter-spacing: -.05em; color: var(--azul); line-height: .95; }
.ibs-login-grande span { color: var(--gris); }

@media (max-width: 900px) {
    .ibs-login-grande { display: none; }
    .ibs-login-tarjeta { margin: 0 auto; }
}
@media (max-width: 480px) {
    .ibs-login-tarjeta { padding: 26px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .ibs-login * { transition: none !important; }
}

/* 2026-10-21: entrada con enlace al correo (sin contraseñas) */
.ibs-login .nota { margin: -4px 0 0; text-align: center; color: var(--gris); font-size: 12.5px; }
