:root{
  --bg:#e9e9e9;

  --panel:white;           /* card bianca */
  --panel-2:white;         /* input bianco */
  --border:#c7c7c7;        /* bordo grigio chiaro */
  --text:#000000;          /* testo nero */
  --muted:#555555;         /* testo secondario */
  
  --accent:#2f6df6;
  --accent-2:#3f7bff;
  --shadow:0 18px 40px rgba(0,0,0,.15);
  --radius:16px;
}


*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(47,109,246,.10), transparent 60%),
    radial-gradient(900px 420px at 0% 110%, rgba(63,123,255,.08), transparent 60%),
    var(--bg);
}

.login-wrap{
  min-height:100dvh;
  display:grid; place-items:center;
  padding:28px;
}


/* Logo */

.card{
  width: min(520px, 92vw);
  background-color: #ffffff;
  border-radius: 24px;          /* un po' più tonda */
  padding: 26px;
  box-shadow: 0 20px 40px rgba(0,0,0,.10);
  color: var(--text);
}



.logo-img{
  
  max-width: 240px;
  height: auto;
  display: block;
  padding-left: auto;
  padding-right: 30px;

}

.card-logo{
  display: block;
  margin: 0 auto 12px;
  height: 48px;
}

h1{
  margin:0 0 6px;
  text-align:center;
  font-size:1.2rem;
  letter-spacing:.1px;
  color:#000;       /* nero */
}

.subtitle{
  margin:0 0 16px;
  text-align:center;
  color:#555;       /* grigio secondario */
  font-size:.95rem;
}


/* separatore opzionale */
.divider{
  height:1px; margin:12px 0 16px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}

form{
  display: grid;
  gap: 22px;                /* spazio verticale tra i campi */
}

/* wrapper della floating label */
label.floating{
  position: relative;
  display: block;
  width: 100%;
}

/* etichetta a cavallo del bordo superiore */
label.floating::after{
  content: attr(data-label);
  position: absolute;
  top: -0.55rem;            /* alza/abbassa la label */
  left: 20px;               /* spostamento orizzontale */
  background: #ffffff;      /* stesso colore della card/input */
  padding: 0 6px;
  font-size: .90rem;
  font-weight: 600;
  color: var(--accent);     /* blu */
  line-height: 1;
}

/* input all'interno della floating label */
label.floating input{
  width: 100%;
  padding: 12px 16px;       /* spazio interno della pill */
  border-radius: 999px;     /* pill tondo */
  border: 1px solid var(--border);
  background: #ffffff;
  color: #000000;
  outline: none;
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background .2s ease;
}

/* placeholder dell'input */
label.floating input::placeholder{
  color: #a0a0a0;
}

/* stato focus */
label.floating input:focus-visible{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,109,246,.22);
}


button{
  margin-top:6px;
  padding:12px 14px;
  border:0; border-radius:12px;
  font-weight:700; cursor:pointer;
  background:linear-gradient(180deg, var(--accent), var(--accent-2));
  color:white;
  box-shadow:0 12px 22px rgba(47,109,246,.28);
  transition:transform .06s ease, filter .15s ease, box-shadow .15s ease;
}
button:hover{filter:brightness(1.06)}
button:active{transform:translateY(1px); box-shadow:0 8px 18px rgba(47,109,246,.32);}
button:disabled{opacity:.6; cursor:default}

.error{
  margin:6px 0 0;
  color:#ffd4d4;
  background:rgba(186,56,56,.14);
  border:1px solid rgba(186,56,56,.45);
  padding:9px 11px; border-radius:10px;
}
.hint{font-size:.85rem; color:#9fb0d1; margin-top:10px}

@media (max-width:420px){
  .card{padding:18px}
  h1{font-size:1.08rem}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none !important}
}
