/* =========================================================================
 * L16 · Inici de sessió — formulari centrat (com iofrm login12) sobre un
 * escenari isomètric clar (iso-clar.css, maqueta 11)
 * ========================================================================= */
.l16 {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 40px 16px;
    overflow: hidden;
    background:
        radial-gradient(circle, var(--b-200) 1px, transparent 1.4px) 0 0 / 22px 22px,
        radial-gradient(900px 520px at 50% 55%, var(--b-50), #fff 72%);
}

/* ---- Escenes decoratives als costats ---- */
.l16 .deco { position: absolute; top: 0; bottom: 0; width: 46%; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.l16 .deco.left  { left: -6%; }
.l16 .deco.right { right: -8%; }
.l16 .deco .iso-scene { background: none; flex: 1; }
.l16 .deco .iso-tag { pointer-events: auto; }

/* ---- Formulari ---- */
.l16 .form-items {
    position: relative; z-index: 3;
    width: 100%; max-width: 380px;
    display: flex; flex-direction: column; gap: 18px;
    padding: 34px 32px 28px;
    text-align: center;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid var(--panel-border); border-top: 4px solid var(--b-700);
    border-radius: var(--r-lg);
    box-shadow: 0 30px 70px rgba(0, 64, 92, .16);
    animation: panel-in .8s var(--ease) both;
}
.l16 .logo img { height: 34px; }
.l16 h3 { font-size: 24px; font-weight: 300; line-height: 1.25; color: var(--ink); }
.l16 .form-items > p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: -8px; }

/* Pestanyes Accés / Registre */
.l16 .page-links { display: flex; justify-content: center; gap: 22px; }
.l16 .page-links a { position: relative; padding-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.l16 .page-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--b-200); transition: background .2s; }
.l16 .page-links a.active { color: var(--ba-blue); }
.l16 .page-links a.active::after, .l16 .page-links a:hover::after { background: var(--ba-blue); }

.l16 form { display: flex; flex-direction: column; gap: 12px; }
.l16 .form-control {
    width: 100%; padding: 11px 16px;
    font: 15px var(--font); color: var(--ink);
    background: var(--ba-mist); border: 1px solid transparent; border-radius: var(--r-sm);
    outline: none; transition: background .2s, border-color .2s, box-shadow .2s;
}
.l16 .form-control::placeholder { color: var(--ink-3); }
.l16 .form-control:hover { background: var(--b-50); }
.l16 .form-control:focus { background: #fff; border-color: var(--b-500); box-shadow: 0 0 0 3px rgba(60, 140, 192, .18); }

.l16 .form-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.l16 .ibtn {
    padding: 10px 30px; border: 0; border-radius: var(--r-sm);
    font: 600 15px var(--font); color: #fff; cursor: pointer;
    background: linear-gradient(150deg, var(--b-800), var(--b-600));
    box-shadow: 0 6px 16px rgba(0, 92, 132, .25);
    transition: transform .2s, box-shadow .2s;
}
.l16 .ibtn:hover, .l16 .ibtn:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 92, 132, .32); }
.l16 .form-button a { font-size: 13px; color: var(--ba-blue); }
.l16 .form-button a:hover { text-decoration: underline; }

/* Altres accessos */
.l16 .other-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid var(--grid); font-size: 13px; color: var(--ink-3); }
.l16 .other-links span { flex-basis: 100%; }
.l16 .other-links a { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--panel-border); color: var(--ink-2); font-weight: 600; transition: border-color .2s, color .2s; }
.l16 .other-links a:hover { border-color: var(--b-300); color: var(--ba-blue); }

.l16 .foot { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; text-align: center; font-size: 12px; color: var(--ink-3); }

@media (max-width: 900px) {
    .l16 .deco.right { display: none; }
    .l16 .deco.left { left: 0; width: 100%; opacity: .35; }
    .l16 .deco .iso-tag { display: none; }
}
