/* ================================
   GO WORK — Login Styles (style.css)
   Coerente con brand rosso / bianco
   ================================ */

:root{
  --gw-red: #d32f2f;
  --gw-red-dark: #b71c1c;
  --gw-text: #111827;
  --gw-muted: #6b7280;
  --gw-border: #dfe3ea;
  --gw-bg: #f6f7f9;
  --gw-card-bg: #ffffff;
  --gw-radius: 12px;
  --gw-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}

/* Base */
html, body{
  height: 100%;
}
body{
  margin: 0;
  color: var(--gw-text);
  background: var(--gw-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.45;
}

/* Topbar (sottile, chiara) */
.topbar{
  background: #fff;
  height: 44px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gw-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sinistro, .destro{ margin:0; padding:0; }
.top-text{
  font-size: 12px;
  color: var(--gw-muted);
  text-decoration: none;
}

/* Wrapper login */
.login-clean{
  padding: 80px 0;
  background: var(--gw-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 44px - 120px); /* topbar + footer safe */
}

/* Card del form */
.login-clean form{
  width: min(360px, 92%);
  margin: 0 auto;
  background: var(--gw-card-bg);
  padding: 32px 28px;
  border-radius: var(--gw-radius);
  color: #505e6c;
  box-shadow: var(--gw-shadow);
}

/* Logo / illustrazione */
.login-clean .illustration{
  text-align: center;
  padding: 0 0 16px;
}
.login-clean .illustration img{
  max-height: 130px;   /* logo più visibile */
  height: auto;
  width: auto;
}

/* Campi di input */
.login-clean form .form-control{
  height: 44px;
  background: #f8fafc;
  border: 1px solid var(--gw-border);
  border-radius: 10px;
  box-shadow: none;
  outline: none;
  color: inherit;
  text-indent: 8px;
}
.login-clean form .form-control:focus{
  border-color: var(--gw-red);
  box-shadow: 0 0 0 .2rem rgba(211,47,47,.15);
}

/* Pulsante primario */
.login-clean form .btn-primary{
  background: var(--gw-red);
  border: 1px solid var(--gw-red);
  border-radius: 10px;
  padding: 11px;
  box-shadow: none;
  margin-top: 18px;
  font-weight: 700;
  outline: none !important;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.login-clean form .btn-primary:hover,
.login-clean form .btn-primary:active{
  background: var(--gw-red-dark);
  border-color: var(--gw-red-dark);
}
.login-clean form .btn-primary:active{
  transform: translateY(1px);
}

/* Link “forgot” */
.login-clean form .forgot{
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--gw-muted);
  opacity: .95;
  text-decoration: none;
  margin-top: 10px;
}
.login-clean form .forgot:hover,
.login-clean form .forgot:active{
  opacity: 1;
  text-decoration: underline;
}

/* Footer */
footer{
  text-align: center;
  padding: 30px 10px;
  line-height: 1.6em;
  font-size: .85em;
  color: var(--gw-muted);
}
footer a{
  color: var(--gw-red);
  text-decoration: none;
}
footer a:hover{ text-decoration: underline; }

/* Logo cliente sotto il form */
.logo_cliente{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

/* Responsive piccoli ritocchi */
@media (max-width: 480px){
  .login-clean{ padding: 56px 0; }
  .login-clean form{ padding: 28px 22px; }
  .topbar{ height: 42px; padding: 8px 12px; }
}
