/* ==========================================================================
   PÁGINA DE ACCESO (opción 1 "Corporativa", 09/10/2026)
   La usan index.php (login) y view/auth/cambiar_password_obligatorio.php (primer acceso).
   Todo va bajo body.login-v2 para no afectar al resto del ERP.
   ========================================================================== */
body.login-v2 { margin: 0; padding: 0 !important; min-height: 100vh; background: #fff !important; background-image: none !important;
    font-family: var(--font-main); color: var(--secondary); font-weight: 400; }
body.login-v2 *, body.login-v2 *::before, body.login-v2 *::after { box-sizing: border-box; }
.acceso-pantalla { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }

/* ---------- Panel de marca ---------- */
.acceso-marca { position: relative; overflow: hidden; color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 55%, var(--brand-gradient-end) 100%); }
.acceso-marca::before { /* trama de serigrafía */
    content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
    background-image: radial-gradient(#fff 1.4px, transparent 1.6px); background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 75%); mask-image: linear-gradient(115deg, transparent 20%, #000 75%); }
.acceso-marca::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -180px; bottom: -200px;
    border: 70px solid rgba(255,255,255,.07); pointer-events: none; }
.acceso-marca > * { position: relative; z-index: 1; }
.acceso-logo { height: 58px; width: auto; align-self: flex-start; }
.acceso-marca h1 { font-size: 2.4rem; line-height: 1.15; font-weight: 700; margin: 0 0 16px; max-width: 560px; color: #fff;
    background: none; border: 0; padding: 0; display: block; }
.acceso-intro { font-size: 1.08rem; opacity: .9; max-width: 470px; line-height: 1.55; margin: 0 0 36px; font-weight: 300; }
.acceso-ventajas { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.acceso-ventajas li { display: flex; align-items: center; gap: 16px; font-size: 1rem; }
.acceso-ventajas i { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.14); font-size: 1.05rem; }
.acceso-pie-marca { font-size: .85rem; opacity: .75; }

/* ---------- Formulario ---------- */
.acceso-form { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: #fff; }
.acceso-caja { width: 100%; max-width: 380px; }
.acceso-caja h2 { font-size: 2rem; margin: 0 0 6px; font-weight: 700; color: var(--secondary); background: none; border: 0; padding: 0; display: block; }
.acceso-sub { color: var(--text-muted); margin: 0 0 34px; font-size: .98rem; }
.acceso-caja label { display: block; font-size: .85rem; font-weight: 600; margin: 0 0 8px; color: var(--secondary); }
.acceso-campo { position: relative; margin-bottom: 20px; }
.acceso-campo .izq { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #a0aec0; pointer-events: none; transition: color .2s; }
.acceso-campo .ojo { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #a0aec0; cursor: pointer; padding: 6px; }
.acceso-campo input { width: 100%; font: inherit; font-size: 1rem; padding: 14px 46px !important; border: 2px solid #e2e8f0; border-radius: 10px;
    background: #f8fafc; color: var(--secondary); margin: 0; height: auto; }
.acceso-campo input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12); }
.acceso-campo:focus-within .izq { color: var(--primary); }
.acceso-btn { width: 100%; border: 0; border-radius: 10px; padding: 15px; font: inherit; font-size: 1.05rem; font-weight: 600; color: #fff; cursor: pointer; margin-top: 8px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark)); box-shadow: 0 8px 20px rgba(var(--primary-rgb), .28);
    display: flex; justify-content: center; gap: 10px; align-items: center; transition: transform .15s, box-shadow .15s; }
.acceso-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--primary-rgb), .36); }
.acceso-btn:active { transform: translateY(0); }
.acceso-ayuda { text-align: center; margin: 22px 0 0; color: var(--text-muted); font-size: .9rem; }
.acceso-ayuda a { color: var(--primary); font-weight: 600; text-decoration: none; }
.acceso-firma { margin-top: 40px; padding-top: 22px; border-top: 1px solid #edf0f2; text-align: center; }
.acceso-firma-por { display: block; font-size: .72rem; letter-spacing: .6px; text-transform: uppercase; color: #9aa4ad; margin-bottom: 8px; }
.acceso-firma a { display: inline-block; transition: transform .2s; }
.acceso-firma a:hover { transform: translateY(-1px); }
.acceso-firma img { height: 32px; width: auto; display: block; margin: 0 auto; }
.acceso-firma-ver { display: block; font-size: .74rem; color: #a7b0b8; margin-top: 8px; }

/* ---------- Móvil y tablet vertical ---------- */
@media (max-width: 900px) {
    .acceso-pantalla { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .acceso-marca { padding: 28px 24px 40px; }
    .acceso-logo { height: 44px; margin-bottom: 22px; }
    .acceso-marca h1 { font-size: 1.6rem; margin-bottom: 8px; }
    .acceso-intro { font-size: .95rem; margin: 0; }
    .acceso-ventajas, .acceso-pie-marca { display: none; }
    .acceso-form { padding: 30px 22px 40px; align-items: flex-start; border-radius: 22px 22px 0 0; margin-top: -18px; position: relative; z-index: 2; }
    .acceso-caja h2 { font-size: 1.6rem; }
    .acceso-sub { margin-bottom: 24px; }
    .acceso-firma { margin-top: 32px; }
}

/* ---------- Variantes del logotipo del panel de marca ---------- */
.acceso-logo.blanco { filter: brightness(0) invert(1); }   /* logotipo a color convertido a blanco */
.acceso-logo.en-caja { height: 84px; background: #fff; padding: 8px 14px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.15); } /* logotipos multicolor */
@media (max-width: 900px) {
    .acceso-logo.en-caja { height: 64px; }
}
