/* Alma WA — pagine di accesso (login, registrazione, recupero e reimpostazione password).
   Va caricato DOPO lo <style> della pagina: stessa struttura, nuova veste. */

html body {
  background: #eef1f6;
  color: #16202e;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

body .login-card,
body .register-card,
body .forgot-card,
body .reset-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  width: 100%;
  max-width: 880px;
  background: #fff;
  border: 1px solid #dde2ea;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(22, 32, 46, .06), 0 14px 40px rgba(22, 32, 46, .10);
  overflow: hidden;
}

/* pannello scuro a sinistra */
body .login-header,
body .register-header,
body .forgot-header,
body .reset-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 36px;
  text-align: left;
  color: #a9b6ca;
  background: #132238;
  background-image: radial-gradient(circle at 115% -15%, rgba(31, 95, 208, .6), transparent 58%);
}
body .login-header > i,
body .register-header > i,
body .forgot-header > i,
body .reset-header > i {
  margin-bottom: auto;
  padding-bottom: 48px;
  font-size: 38px !important;
  line-height: 1;
  color: #f08a1c;
}
body .login-header h4,
body .register-header h4,
body .forgot-header h4,
body .reset-header h4 {
  margin: 0 !important;
  font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #fff;
  text-wrap: balance;
}
body .login-header p,
body .register-header p,
body .forgot-header p,
body .reset-header p {
  max-width: 30ch;
  font-size: .95rem;
  color: #a9b6ca;
}

body .login-body,
body .register-body,
body .forgot-body,
body .reset-body {
  align-self: center;
  padding: 36px;
}

body .form-control {
  background-color: #f7f9fc;
  border-color: #dde2ea;
  border-radius: .6rem;
}
body .form-control:focus {
  background-color: #fff;
  border-color: #1f5fd0;
  box-shadow: 0 0 0 .2rem rgba(31, 95, 208, .18);
}
body .form-check-input:checked { background-color: #1f5fd0; border-color: #1f5fd0; }
body .form-check-input:focus { border-color: #1f5fd0; box-shadow: 0 0 0 .2rem rgba(31, 95, 208, .18); }

body .btn-login,
body .btn-register,
body .btn-submit {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: .6rem;
  background: #1f5fd0;
  color: #fff;
  font-weight: 600;
  transition: background-color .15s;
}
body .btn-login:hover,
body .btn-register:hover,
body .btn-submit:hover,
body .btn-login:focus,
body .btn-register:focus,
body .btn-submit:focus {
  background: #184fb3;
  color: #fff;
  transform: none;
  box-shadow: none;
}
body .btn-login:focus-visible,
body .btn-register:focus-visible,
body .btn-submit:focus-visible { outline: 2px solid #f08a1c; outline-offset: 2px; }

body a { color: #1f5fd0; }
body a:hover { color: #184fb3; }
body .register-link a, body .login-link a { color: #1f5fd0; }
body .alert { border-radius: .7rem; }

@media (max-width: 720px) {
  body .login-card,
  body .register-card,
  body .forgot-card,
  body .reset-card { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  body .login-header,
  body .register-header,
  body .forgot-header,
  body .reset-header { padding: 22px 24px; gap: 4px; }
  body .login-header > i,
  body .register-header > i,
  body .forgot-header > i,
  body .reset-header > i { padding-bottom: 14px; font-size: 28px !important; }
  body .login-header h4,
  body .register-header h4,
  body .forgot-header h4,
  body .reset-header h4 { font-size: 1.45rem; }
  body .login-body,
  body .register-body,
  body .forgot-body,
  body .reset-body { padding: 24px; }
}
