/* STEDA — Login & cambio password.
   Riusa landing.css per palette/header/footer. */
.login-page a { text-decoration: none; }
.login-shell {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto;
  position: relative; isolation: isolate;
  background:
    radial-gradient(ellipse 55% 95% at 103% 46%, rgba(93,18,43,.105), rgba(120,34,57,.035) 44%, transparent 78%),
    radial-gradient(ellipse 44% 74% at -12% 87%, rgba(96,22,44,.055), transparent 77%),
    linear-gradient(112deg,#fff 0%,#fdfcfc 37%,#f8f5f6 70%,#f3eef0 100%);
}
.login-header, .login-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px clamp(22px,4.6vw,88px); gap: 16px;
}
.login-header__brand { display: flex; align-items: center; }
.login-header__logo { height: clamp(56px, 9dvh, 90px); width: auto; max-width: min(38vw, 240px); object-fit: contain; mix-blend-mode: multiply; }
.login-header__context { display: inline-flex; align-items: center; gap: 10px; color: #667080; font-size: .82rem; font-weight: 650; }
.login-header__dot { width: 8px; height: 8px; background: #782239; border-radius: 50%; box-shadow: 0 0 0 5px rgba(120,34,57,.085); }
.login-main { display: grid; place-items: center; padding: clamp(20px, 4dvh, 48px) 20px; }
.login-card {
  width: 100%; max-width: 460px; padding: clamp(24px, 2.7vw, 40px);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 26px;
  box-shadow: 0 28px 85px rgba(57,23,39,.085), 0 3px 18px rgba(57,23,39,.025);
  animation: login-rise .7s cubic-bezier(.2,.75,.2,1) both;
}
.login-kicker { color: #782239; letter-spacing: .14em; font-size: .69rem; font-weight: 800; }
.login-card h1 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); letter-spacing: -.035em; color: #17263a; margin: 9px 0 8px; line-height: 1.2; }
.login-sub { color: #697483; font-size: .9rem; line-height: 1.55; margin: 0 0 22px; }
.login-field { margin-bottom: 14px; }
.login-field label { display: block; margin-bottom: 7px; font-weight: 700; color: #303b4c; font-size: .82rem; }
.login-field input {
  display: block; width: 100%; min-height: 48px; border: 1.5px solid #e5e4e9;
  background: #fcfcfd; border-radius: 12px; padding: 11px 13px;
  font: inherit; font-size: .95rem; color: #17263a; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-field input:focus { background: #fff; border-color: #872d48; box-shadow: 0 0 0 4px rgba(120,34,57,.10); }
.login-error { color: #a12938; font-size: .78rem; margin-top: 5px; line-height: 1.5; }
.login-alert {
  border-radius: 12px; padding: 11px 14px; margin-bottom: 15px;
  font-size: .85rem; line-height: 1.5;
}
.login-alert--error { background: #fff0f2; color: #a02622; border: 1px solid #f5c6cb; }
.login-alert--success { background: #f0f7f1; color: #2f6a37; border: 1px solid #c6e2cb; }
.login-btn {
  width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: 14px; color: #fff;
  background: linear-gradient(112deg,#903148,#4d1428);
  font: inherit; font-size: .95rem; font-weight: 750;
  cursor: pointer; box-shadow: 0 12px 26px rgba(122,32,53,.18);
  transition: transform .25s, box-shadow .25s;
  margin-top: 4px;
}
.login-btn svg { width: 19px; height: 19px; }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(122,32,53,.25); }
.login-help { text-align: center; color: #697483; font-size: .82rem; margin: 18px 0 0; line-height: 1.5; }
.login-help a { color: #782239; font-weight: 700; }
.login-footer { color: #8b909b; font-size: .73rem; }
.login-footer span:first-child { font-weight: 800; letter-spacing: .07em; color: #782239; }
@keyframes login-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .login-header, .login-footer { padding: 12px 18px; }
  .login-card { padding: 24px 18px; border-radius: 22px; }
  .login-footer { flex-direction: column; gap: 4px; }
}


/* =========================================================
   STEDASIGN | AREA CLIENTE • AMARANTO ISTITUZIONALE 2026
   Stesso sfondo continuo in header / main / footer.
   Card chiare, contrasto elevato, mobile e motion accessibile.
   ========================================================= */
:root {
  --cliente-amaranto-950: #371724;
  --cliente-amaranto-900: #502133;
  --cliente-amaranto-800: #69263d;
  --cliente-amaranto-700: #842d49;
  --cliente-amaranto-200: #e7ced6;
  --cliente-ink: #28323f;
  --cliente-muted: #67717d;
}
html { min-height: 100%; background: #502133; }
body.landing-body.login-page,
body.landing-body.cruscotto-page {
  min-height: 100vh;
  margin: 0;
  background: #502133 !important;
  color: #28323f;
}
body.landing-body.login-page *,
body.landing-body.cruscotto-page * { box-sizing: border-box; }
/* Il gradiente appartiene a un SOLO contenitore, non a tre bande. */
body.landing-body.login-page .login-shell,
body.landing-body.cruscotto-page .cruscotto-shell {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background-color: #502133;
  background-image:
    radial-gradient(ellipse 70% 45% at 84% 14%, rgba(182,91,116,.32), transparent 75%),
    radial-gradient(ellipse 65% 55% at 0% 85%, rgba(115,41,65,.62), transparent 75%),
    linear-gradient(132deg, #391925 0%, #572338 47%, #712b48 76%, #492034 100%) !important;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body.landing-body.login-page .login-header,
body.landing-body.login-page .login-main,
body.landing-body.login-page .login-footer,
body.landing-body.cruscotto-page .cruscotto-header,
body.landing-body.cruscotto-page .cruscotto-main,
body.landing-body.cruscotto-page .cruscotto-footer {
  background: transparent !important;
  border: 0;
}
body.landing-body.login-page .login-header,
body.landing-body.cruscotto-page .cruscotto-header { padding-top: clamp(16px, 2.5vh, 28px); padding-bottom: 12px; }
body.landing-body.login-page .login-header__logo,
body.landing-body.cruscotto-page .cruscotto-header__logo {
  height: clamp(72px, 10vh, 104px);
  max-width: min(44vw, 270px);
  width: auto;
  mix-blend-mode: normal;
  border-radius: 12px;
  filter: drop-shadow(0 8px 24px rgba(15, 4, 10, .16));
}
/* Le immagini originali hanno sfondo chiaro: il supporto chiaro del logo è intenzionale. */
body.landing-body.login-page .login-header__context,
body.landing-body.cruscotto-page .cruscotto-header__hello { color: #f1dfe5; }
body.landing-body.cruscotto-page .cruscotto-header__hello strong { color: #fff; }
body.landing-body.login-page .login-header__dot { background: #e8b8c7; box-shadow: 0 0 0 5px rgba(255,255,255,.13); }
body.landing-body.login-page .login-footer,
body.landing-body.cruscotto-page .cruscotto-footer { color: #e9d7df; }
body.landing-body.login-page .login-footer span:first-child,
body.landing-body.cruscotto-page .cruscotto-footer span:first-child { color: #fff; }
body.landing-body.login-page .login-footer,
body.landing-body.cruscotto-page .cruscotto-footer { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) {
  body.landing-body.login-page *,
  body.landing-body.cruscotto-page * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Login e cambio password: pannello premium, colori uniformi */
body.landing-body.login-page .login-main { min-width: 0; padding: 24px 20px 48px; }
body.landing-body.login-page .login-card {
  max-width: 510px;
  background: #fffaf9;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(18,5,12,.31), 0 0 0 1px rgba(111,39,66,.07);
  position: relative;
  overflow: hidden;
}
body.landing-body.login-page .login-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 5px;
  background: linear-gradient(90deg, #64253b, #ae526c, #e0b6c3);
}
body.landing-body.login-page .login-card h1 { color: #432338; }
body.landing-body.login-page .login-kicker { color: #862d4c; }
body.landing-body.login-page .login-sub { color: #65707c; }
body.landing-body.login-page .login-field input { background: #fff; border-color: #e5d5da; }
body.landing-body.login-page .login-field input:focus-visible {
  border-color: #842d49; box-shadow: 0 0 0 4px rgba(132,45,73,.13);
}
body.landing-body.login-page .login-btn {
  background: linear-gradient(110deg, #8d3551, #572039);
  box-shadow: 0 12px 25px rgba(94,32,55,.24);
}
body.landing-body.login-page .login-btn:focus-visible,
body.landing-body.login-page .login-help a:focus-visible {
  outline: 3px solid #b8677f; outline-offset: 3px;
}
@media (max-width: 520px) {
  body.landing-body.login-page .login-main { padding: 18px 14px 36px; }
  body.landing-body.login-page .login-card { border-radius: 20px; }
  body.landing-body.login-page .login-header__logo { height: 65px; max-width: 47vw; }
  body.landing-body.login-page .login-header__context { font-size: .74rem; }
}
