/* ═══════════════════════════════════
   LOGIN – pagina unica di accesso
   ═══════════════════════════════════ */

html, body { height: 100%; }

body {
  min-height: 100dvh;
  background: linear-gradient(135deg, #1a1450 0%, #312783 55%, #4836a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ── SPINNER ── */
#init-spinner {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1450 0%, #312783 55%, #4836a8 100%);
  z-index: 9999;
  color: #fff;
  text-align: center;
}
#init-spinner .spin-icon { font-size: 2.5rem; margin-bottom: 12px; }
#init-spinner .spin-label { font-size: .9rem; opacity: .7; }

/* ── CARD ── */
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px 32px;
  width: min(100%, 420px);
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
  display: none;
}

/* ── BRAND ── */
.login-brand { text-align: center; margin-bottom: 32px; }
.login-iulm-logo { height: 36px; margin-bottom: 14px; }
.login-logo { font-size: 2rem; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.login-logo span { color: var(--accent); }
.login-tagline { font-size: .78rem; color: var(--text-light); margin-top: 5px; }

/* ── SSO ── */
.btn-sso {
  width: 100%;
  padding: 14px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity .2s, transform .1s;
}
.btn-sso:hover    { opacity: .9; }
.btn-sso:active   { transform: scale(.98); }
.btn-sso:disabled { opacity: .5; cursor: not-allowed; }
.sso-logo {
  width: 26px; height: 26px;
  border-radius: 5px;
  background: #fff;
  color: var(--primary);
  font-size: .75rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sso-note { font-size: .72rem; color: var(--text-light); text-align: center; margin-top: 6px; min-height: 16px; }

/* ── DEV NOTE (solo locale) ── */
.login-dev-note {
  font-size: .78rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 18px;
}

.form-group { margin-bottom: 13px; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--gray); margin-bottom: 5px; display: block; }
input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
input:focus { border-color: var(--primary); }

.login-error { font-size: .8rem; color: var(--red); min-height: 18px; margin-bottom: 10px; }

/* ── BTN ── */
.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-primary:hover    { opacity: .88; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline {
  width: 100%;
  padding: 11px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: border-color .2s;
}
.btn-outline:hover { border-color: var(--primary); }

