/* =====================================================================
   PORTAL DE CLIENTS: mateixa línia visual que la web (16-10-2026).
   Capa que va després dels estils propis de client.html; no toca la lògica.
   Per tornar a l'aspecte anterior, n'hi ha prou amb treure el <link> a aquest fitxer.
   ===================================================================== */
:root {
  --ink: #0d1f44;
  --ink-2: #3a4763;
  --ink-3: #6b7489;
  --blue: #1a6dff;
  --blue-deep: #1450c8;
  --sky: #60a5fa;
  --tint-1: #eaf2ff;
  --tint-2: #dde9ff;
  --paper: #f5f8fe;
  --line: rgba(13,31,68,.08);
  --line-strong: rgba(13,31,68,.14);
  --ease: cubic-bezier(.22,1,.36,1);
}

body { font-family: 'Geist', 'Helvetica Neue', Arial, sans-serif; background: var(--paper); color: #1b2a4a; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .font-bold, .font-extrabold { letter-spacing: -.02em; }
h1, h2 { font-weight: 620; }
.text-gray-900 { color: var(--ink); }
.text-blue-600, .text-blue-700 { color: var(--blue); }
.bg-blue-600 { background-color: var(--blue); }
.hover\:text-blue-600:hover { color: var(--blue); }
.bg-gray-50 { background-color: var(--paper); }
::selection { background: var(--ink); color: #fff; }

/* Botons i camps */
.blue-btn { background: var(--blue); box-shadow: 0 10px 24px -12px rgba(26,109,255,.7); transition: background .2s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.blue-btn:hover { background: var(--blue-deep); opacity: 1 !important; transform: translateY(-1px); }
.portal-input { border: 1px solid var(--line-strong); background: rgba(255,255,255,.9); border-radius: 10px; color: var(--ink); }
.portal-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,109,255,.12); }
select { border-color: var(--line-strong) !important; }

/* Marca (igual que la capçalera de la web) */
.pa-brand { font-size: 15px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.pa-brand-lg { font-size: 19px; }
.pa-eyebrow { font-size: .72rem; font-weight: 560; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }

/* Pantalla d'accés: fons blau clar amb taques de llum i targeta de vidre */
.pa-login { position: relative; overflow: hidden; background: linear-gradient(160deg, #e3eeff 0%, #eef4ff 45%, #f9fbff 100%); }
.pa-blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.pa-blob-1 { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; right: -12vw; top: -14vw; background: radial-gradient(circle, rgba(26,109,255,.38), rgba(26,109,255,0) 68%); animation: paDrift1 26s ease-in-out infinite alternate; }
.pa-blob-2 { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; left: -12vw; bottom: -16vw; background: radial-gradient(circle, rgba(99,102,241,.26), rgba(99,102,241,0) 70%); animation: paDrift2 32s ease-in-out infinite alternate; }
@keyframes paDrift1 { to { transform: translate(-6vw, 5vw) scale(1.1); } }
@keyframes paDrift2 { to { transform: translate(7vw, -4vw) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .pa-blob { animation: none; } }
.pa-login-card { position: relative; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.66));
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 30px 70px -36px rgba(13,31,68,.45); }
.pa-login-title { font-size: 1.75rem; line-height: 1.1; font-weight: 620; letter-spacing: -.03em; color: var(--ink); }
.pa-login-card .bg-blue-50 { background: var(--tint-1); border-color: rgba(26,109,255,.15); }

/* Barra superior i barra de benvinguda */
.pa-topbar { background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--line); }
.pa-welcome { position: relative; overflow: hidden; background: linear-gradient(160deg, #e3eeff 0%, #eef4ff 45%, #f9fbff 100%); border-bottom: 1px solid var(--line); }
.pa-welcome::after { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -300px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(26,109,255,.22), rgba(26,109,255,0) 68%); }
.pa-welcome > * { position: relative; z-index: 1; }
#welcome-company { color: var(--blue); }
#welcome-text, #welcome-company { font-size: 1.25rem; font-weight: 620; letter-spacing: -.025em; }
#settings-title { font-size: 1.6rem; font-weight: 620; letter-spacing: -.03em; color: var(--ink); }
#solutions-select { border: 1px solid rgba(26,109,255,.25) !important; background: #fff; color: var(--blue-deep); border-radius: 999px; box-shadow: 0 6px 16px -12px rgba(26,109,255,.6); }

/* Menú lateral */
#dashboard-view aside, #settings-view aside { background: rgba(255,255,255,.72); border-color: var(--line) !important; }
.sidebar-link, .settings-sidebar-link { border-radius: 10px; color: var(--ink-2); font-weight: 520; font-size: .86rem; }
.sidebar-link:hover, .settings-sidebar-link:hover { background: var(--tint-1); color: var(--blue); }
.sidebar-link.active, .settings-sidebar-link.active { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -14px rgba(26,109,255,.9); }

/* Zona de contingut i targetes */
#dashboard-view main, #settings-view main { background: linear-gradient(180deg, #f5f8fe 0%, #eef3fc 100%); }
.stat-card, .content-card, .dash-card { border-radius: 18px; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 1px 2px rgba(13,31,68,.04), 0 16px 36px -26px rgba(13,31,68,.3); }
.stat-card { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(13,31,68,.04), 0 22px 44px -26px rgba(26,109,255,.35); }
.dash-hbar > div { background: linear-gradient(90deg, var(--blue), var(--sky)); }
.dash-live { border-color: var(--line-strong); color: var(--ink-3); }
#main-content .rounded-2xl.bg-white, #settings-content .rounded-2xl.bg-white { border-color: var(--line); }

/* Desplegables i finestres */
#profile-dropdown, #notif-panel { border-radius: 16px; border-color: var(--line); box-shadow: 0 24px 50px -24px rgba(13,31,68,.4); }
#profile-menu > button { border-radius: 999px; background: rgba(255,255,255,.9); border-color: var(--line); }
.toast { border-radius: 12px; font-weight: 560; }
.toast:not(.ok):not(.err) { background: var(--ink); }
