/* Login - stile minimale e moderno (sfondo bianco) */
:root{
  --lg-bg: #ffffff;
  --lg-surface: #ffffff;
  --lg-text: #0f172a;
  --lg-muted: #475569;
  --lg-border: #e2e8f0;
  --lg-primary: #0ea5e9;
  --lg-primary-600: #0284c7;
  --lg-radius: 16px;
  --lg-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --lg-shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.lg-page{
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--lg-text);
  background: var(--lg-bg);
}

.lg-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--lg-border);
}

.lg-logo{
  width: 44px;
  height: 44px;
  max-width: none;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--lg-border);
  padding: 6px;
  background: #fff;
  box-shadow: var(--lg-shadow-sm);
}

.lg-header-title{
  font-size: 13px;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--lg-muted);
  white-space: nowrap;
}

.lg-body{
  width: 100%;
  flex: 1 1 auto;
  padding: 14px 14px 18px;
  display: flex;
  justify-content: center;
}

.lg{
  width: 100%;
  max-width: 720px;
}

.lg-card{
  margin-top: 10px;
  border: 1px solid var(--lg-border);
  background: var(--lg-surface);
  border-radius: var(--lg-radius);
  box-shadow: var(--lg-shadow);
  padding: 14px;
}

.lg-form{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 780px){
  .lg-card{ padding: 16px; }
  .lg-form{ grid-template-columns: 1fr 1fr; gap: 14px; }
}

.lg-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.lg-field label{
  font-weight: 700;
  font-size: 13px;
  color: var(--lg-text);
}

.lg-input.inputElement{
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--lg-border);
  border-radius: 12px;
  outline: none;
  background: #fff;
  transition: box-shadow .12s ease, border-color .12s ease;
}

.lg-input.inputElement:focus{
  border-color: rgba(14, 165, 233, 0.65);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
}

.lg-input.inputElement::placeholder{
  color: rgba(71, 85, 105, 0.75);
}

.lg-btn{
  margin-top: 14px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, var(--lg-primary), var(--lg-primary-600));
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--lg-shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.lg-btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--lg-shadow);
  filter: saturate(1.05);
}

.lg-btn:active{
  transform: translateY(0px);
}

.lg-alt{
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
}

/* @author Benjamin */
.lg-forgot-wrap{
  margin: 10px 0 0;
  text-align: center;
}

.lg-forgot-btn{
  border: none;
  background: transparent;
  color: var(--lg-primary-600);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lg-forgot-btn:hover{
  color: var(--lg-primary);
}

/* @author Benjamin */
.swal2-popup.lg-forgot-modal{
  width: min(420px, 92vw) !important;
  padding: 1rem 1rem 1.1rem !important;
}

.swal2-popup.lg-forgot-modal .swal2-title{
  font-size: 1.15rem !important;
  margin: 0.2rem 0 0.5rem !important;
}

.swal2-popup.lg-forgot-modal .swal2-html-container{
  margin: 0.2rem 0 0.2rem !important;
}

.swal2-popup.lg-forgot-modal .lg-forgot-input{
  height: 40px !important;
  min-height: 40px !important;
  margin: 0.35rem auto !important;
  padding: 0 0.75rem !important;
  font-size: 0.9rem !important;
}

#registrati{
  color: var(--lg-primary-600);
  font-weight: 800;
  text-decoration: none;
}

#registrati:hover{
  text-decoration: underline;
}

.footer{
  text-align: center;
  padding: 10px 14px 16px;
  color: var(--lg-muted);
  font-size: 12px;
}

.password-container{
  position: relative;
  display: block;
}

.password-container input{
  padding-right: 44px;
}

.password-container .toggle-eye{
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--lg-muted);
  border: 1px solid var(--lg-border);
  background: #fff;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-container .toggle-eye:hover{
  color: var(--lg-text);
}