/* ── Corso sicurezza — form iscrizione in landing ──────────────── */
.philnet-corso-register {
  scroll-margin-top: 80px;
  margin-top: 0.5rem;
}

.philnet-corso-register__card {
  background: #fff;
  border-radius: 8px;
  padding: 1.75rem 2rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.philnet-corso-register__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.philnet-corso-register__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .philnet-corso-register__row {
    grid-template-columns: 1fr 1fr;
  }
}

.philnet-corso-register__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.philnet-corso-register__field label {
  display: block !important;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f3b57;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

.philnet-corso-register__field input {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  border: 1px solid #c5d0db;
  border-radius: 6px;
  background: #fff;
  float: none !important;
}

.philnet-corso-register__field input:focus {
  outline: none;
  border-color: #00897b;
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.15);
}

.philnet-corso-register__btn {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #37b452 0%, #00897b 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Francois One', 'Roboto Condensed', Roboto, sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 12px rgba(0, 137, 123, 0.3);
}

.philnet-corso-register__btn:hover {
  background: linear-gradient(180deg, #3dc05a 0%, #00796b 100%);
}

.philnet-corso-register__login {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

.philnet-corso-register__login a {
  color: #00897b;
  font-weight: 600;
  text-decoration: none;
}

.philnet-corso-register__login a:hover {
  text-decoration: underline;
}

.philnet-corso-register__alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.philnet-corso-register__alert--danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.philnet-corso-register__alert--info {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.philnet-corso-register__alert ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* ── Auth pages (login / register) ─────────────────────────────── */
.elearn-auth-page {
  min-height: 100vh;
  background: #f4f7fa;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f3b57;
}

.elearn-auth-nav {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
}

.elearn-auth-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.elearn-auth-brand {
  display: inline-block;
  line-height: 0;
}

.elearn-auth-brand img {
  max-height: 40px;
  width: auto;
}

.elearn-auth-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2.5rem 1rem 4rem;
  min-height: calc(100vh - 64px);
}

.elearn-auth-card {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(31, 59, 87, 0.08);
  padding: 2rem 2rem 1.75rem;
}

.elearn-auth-card--login {
  max-width: 480px;
}

.elearn-auth-card--register {
  max-width: 560px;
}

.elearn-auth-header {
  margin-bottom: 1.75rem;
}

.elearn-auth-title {
  margin: 0 0 0.35rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f3b57;
}

.elearn-auth-subtitle {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6b7c93;
}

.elearn-auth-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.125rem;
}

.elearn-auth-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.375rem;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

.elearn-auth-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

@media (min-width: 576px) {
  .elearn-auth-row {
    grid-template-columns: 1fr 1fr;
  }
}

.elearn-auth-label {
  display: block !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f3b57;
}

.elearn-auth-input {
  display: block !important;
  float: none !important;
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  border: 1px solid #d1d9e0;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.elearn-auth-input::placeholder {
  color: #9aa8b8;
}

.elearn-auth-input:focus {
  outline: none;
  border-color: #00897b;
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.15);
}

.elearn-auth-input--upper {
  text-transform: uppercase;
}

.elearn-auth-hint {
  font-size: 0.8125rem;
  color: #6b7c93;
  line-height: 1.4;
}

.elearn-auth-btn {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg, #37b452 0%, #00897b 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 137, 123, 0.25);
}

.elearn-auth-btn:hover {
  background: linear-gradient(180deg, #3dc05a 0%, #00796b 100%);
  box-shadow: 0 4px 12px rgba(0, 137, 123, 0.3);
}

.elearn-auth-btn:active {
  transform: translateY(1px);
}

.elearn-auth-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.25), 0 2px 8px rgba(0, 137, 123, 0.25);
}

.elearn-auth-alert {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.elearn-auth-alert--danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.elearn-auth-alert--info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.elearn-auth-alert ul {
  margin: 0;
  padding-left: 1.25rem;
}

.elearn-auth-footer {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
  color: #6b7c93;
}

.elearn-auth-link {
  color: #00897b;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.elearn-auth-link:hover {
  color: #00695c;
  text-decoration: underline;
}

/* ── E-learning area ───────────────────────────────────────────── */
.elearn-wrap { max-width: 1200px; }
.elearn-card { border: 0; border-radius: 12px; }
.elearn-sidebar { max-height: calc(100vh - 120px); overflow: auto; position: sticky; top: 1rem; }
.elearn-link { color: #1f3b57; text-decoration: none; font-size: 0.92rem; display: block; padding: 2px 0; }
.elearn-link:hover { color: #00897b; text-decoration: none; }
.elearn-link.is-active { color: #00897b; font-weight: 700; }
.elearn-video video { border-radius: 8px; background: #000; max-height: 480px; }
.elearn-body { line-height: 1.6; color: #333; }
.elearn-topbar { box-shadow: 0 1px 0 rgba(0,0,0,.06); margin-bottom: 0; }
.elearn-cat + .elearn-cat { border-top: 1px solid #eee; padding-top: .75rem; }
.elearn-progress-bar { height: 6px; background: #e9ecef; border-radius: 999px; overflow: hidden; }
.elearn-progress-bar__fill { height: 100%; background: linear-gradient(90deg, #00897b, #26a69a); transition: width .3s ease; }
.elearn-progress-pill { font-size: .85rem; color: #495057; }
.elearn-progress-pill__label { margin-right: .35rem; }
.elearn-link.is-done { color: #2e7d32; }
.elearn-link--locked { display: block; font-size: .92rem; padding: 2px 0; }
.elearn-check { color: #2e7d32; font-weight: 700; margin-right: 2px; }
.elearn-test-intro .btn-success { background: #8bc34a; border-color: #8bc34a; font-weight: 700; }
.elearn-quiz-question { border: 1px solid #e9ecef; border-radius: 8px; padding: 1rem 1.25rem; background: #fafafa; }
.elearn-quiz-question legend { font-size: 1rem; margin-bottom: .75rem; }
