/* ===== Bauletto: marchio (direzione «Morbido») =====
   Caricato dopo style.css: cambia colori, caratteri e forme senza toccare le regole dei temi.
   Verde petrolio #0F766E · corallo #FF6B4A · verde notte #0E2F2C · menta #EEF7F5 · Fredoka + Nunito */
body { --primary: #0F766E; --primary-ink: #ffffff; --accent: #FF6B4A; }
body.theme-ufficio, body.theme-classico, body:not([class*="theme-"]) {
  --ink: #0E2F2C; --muted: #4A625F; --line: #D3E6E2; --side: #0F766E; --side-ink: #ffffff; --radius: 12px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font);
}
body.theme-ufficio h1, body.theme-ufficio h2, body.theme-classico h1, body.theme-classico h2, .login h2 { font-family: "Fredoka", var(--font); font-weight: 600; letter-spacing: 0; }
a { color: #0B5F58; }

/* marchio nella barra e all'accesso */
.bau-brand { display: inline-flex; align-items: center; gap: 8px; }
.bau-brand img { width: 30px !important; height: 30px !important; margin: 0; flex: none; }
.bau-word { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 1.45rem; line-height: 1; color: #fff; letter-spacing: 0; }
.side .brand { background: transparent !important; }
.side .brand small { color: #D6F2EE; }
body.theme-classico .side .brand { padding: 14px 14px 10px; }
.brand.big.bau-login { justify-content: center; gap: 10px; padding: .25rem 0 0; }
.brand.big.bau-login img { width: 52px; height: 52px; }
.brand.big.bau-login .bau-word { color: #0F766E; font-size: 2.3rem; }
.bau-azienda { text-align: center; margin: -.35rem 0 .2rem !important; font-weight: 700; color: #4A625F; }
.bau-azienda:empty { display: none; }
.login-wrap { background: #EEF7F5; }
.login.card { border-radius: 20px; border: 1px solid #D3E6E2; padding: 1.6rem; }
.login .btn.primary { border-radius: 999px; min-height: 48px; font-weight: 700; }

/* forme morbide nell'aspetto predefinito */
body.theme-ufficio .card, body.theme-ufficio .kpi { border-radius: 14px; border-color: #D3E6E2; }
body.theme-ufficio .btn { border-radius: 999px; border-color: #9DB8B3; font-weight: 700; }
body.theme-ufficio .btn.primary { background: #0F766E; border-color: #0F766E; color: #fff; }
body.theme-ufficio .btn.primary:hover { background: #0B5F58; border-color: #0B5F58; }
body.theme-ufficio input, body.theme-ufficio select, body.theme-ufficio textarea { border-radius: 10px; border-color: #9DB8B3; }
body.theme-ufficio input:focus, body.theme-ufficio select:focus, body.theme-ufficio textarea:focus { outline: 2px solid #0F766E; outline-offset: 1px; border-color: #0F766E; }
body.theme-ufficio .badge { border-radius: 999px; }
body.theme-ufficio .table th { background: #EEF7F5; border-bottom-color: #9DB8B3; }
body.theme-ufficio .table td { border-bottom-color: #E3EFEC; }
body.theme-ufficio .tabs { border-bottom-color: #D3E6E2; }
@media (min-width: 761px) {
  body.theme-ufficio .side .brand { width: auto; height: 38px; padding: 0 6px 0 0; margin: 0 10px 0 0; border-radius: 0; overflow: visible; }
  body.theme-ufficio .side nav > a, body.theme-ufficio .nav-dd > summary { border-radius: 999px; padding-left: .75rem; padding-right: .75rem; color: #fff; }
  body.theme-ufficio .side nav > a.active, body.theme-ufficio .nav-dd.has-active > summary { background: #fff; color: #0B5F58; }
  body.theme-ufficio .nav-dd-panel { border-radius: 14px; border-color: #D3E6E2; padding: 6px; }
}
.brand.big.bau-login { flex-direction: row; align-items: center; background: none; }

/* ===== Pagina di accesso divisa in due (pannello verde + modulo) ===== */
.login-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: #fff; }
.login-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 3rem clamp(2rem, 5vw, 4.5rem); color: #fff;
  background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.14), transparent 45%), linear-gradient(160deg, #13887F 0%, #0F766E 45%, #0B5F58 100%); }
.login-hero::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 320px; height: 320px; border-radius: 50%; border: 46px solid rgba(255,255,255,.07); pointer-events: none; }
.login-hero-brand { display: flex; align-items: center; gap: 12px; }
.login-hero-brand img { width: 48px; height: 48px; }
.login-hero-brand .bau-word { font-size: 2rem; color: #fff; }
.login-hero-text { max-width: 30rem; }
.login-hero-text h1 { font-family: "Fredoka", var(--font); font-weight: 600; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; margin: 0 0 1rem; color: #fff; letter-spacing: 0; }
.login-hero-text p { margin: 0; font-size: 1.1rem; line-height: 1.5; color: #D6F2EE; }
.login-hero-foot { margin: 0; font-weight: 700; color: #D6F2EE; }
.login-hero-foot:empty { visibility: hidden; }
.login-side { display: grid; place-items: center; padding: 2.5rem 1.5rem; background: #fff; }
.login-form { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 2rem; margin: 0; color: #0E2F2C; }
.login-form input[type=email], .login-form input[type=password] { min-height: 46px; border-radius: 10px; border: 1px solid #9DB8B3; padding: .6rem .8rem; font-size: 1rem; }
.login-form input[type=email]:focus, .login-form input[type=password]:focus { outline: 2px solid #0F766E; outline-offset: 1px; border-color: #0F766E; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; font-size: .92rem; }
.login-check { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; color: #0E2F2C; }
.login-check input { width: 18px; height: 18px; accent-color: #0F766E; margin: 0; }
.login-forgot { font-weight: 700; text-decoration: none; }
.login-forgot:hover { text-decoration: underline; }
.login-forgot-help { background: #EEF7F5; border: 1px solid #D3E6E2; border-radius: 10px; padding: .7rem .9rem; font-size: .9rem; color: #0E2F2C; }
.login-form .btn.primary { background: #0F766E; border-color: #0F766E; color: #fff; border-radius: 999px; min-height: 50px; font-weight: 700; font-size: 1.05rem; }
.login-form .btn.primary:hover { background: #0B5F58; border-color: #0B5F58; }
@media (max-width: 860px) {
  .login-split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-hero { padding: 1.6rem 1.4rem 1.8rem; gap: 1.1rem; }
  .login-hero::after { width: 200px; height: 200px; border-width: 30px; right: -70px; bottom: -80px; }
  .login-hero-brand img { width: 38px; height: 38px; }
  .login-hero-brand .bau-word { font-size: 1.6rem; }
  .login-hero-text h1 { font-size: 1.6rem; margin-bottom: .5rem; }
  .login-hero-text p { font-size: .98rem; }
  .login-hero-foot { display: none; }
  .login-side { place-items: start center; padding: 1.8rem 1.2rem 2.5rem; }
  .login-form h2 { font-size: 1.6rem; }
}
