/* ── Login TJL ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 50%, #eff6ff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 100vh;
}

.login-card {
  background: white;
  border-radius: 20px;
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  text-align: center;
}

.login-logo {
  font-size: 52px;
  margin-bottom: 16px;
  line-height: 1;
}

.login-card h1 {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
  letter-spacing: -.5px;
}

.login-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 28px;
}

.login-erro {
  background: #fee2e2;
  color: #dc2626;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: left;
}

.form-group {
  text-align: left;
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #1e293b;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #f8fafc;
}

.form-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
  background: white;
}

.btn-login {
  width: 100%;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
  margin-top: 8px;
}
.btn-login:hover:not(:disabled) { background: #1d4ed8; }
.btn-login:active:not(:disabled) { transform: scale(.98); }
.btn-login:disabled { background: #93c5fd; cursor: not-allowed; }

.login-dica {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 14px;
  text-align: left;
}

.login-footer {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 28px;
  text-align: center;
}

/* Perfil badge (mostrado após login) */
.perfil-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.perfil-badge.admin    { background: #eff6ff; color: #1d4ed8; }
.perfil-badge.sac      { background: #fff7ed; color: #c2410c; }
.perfil-badge.tecnico  { background: #f0fdf4; color: #15803d; }
.perfil-badge.comercial { background: #faf5ff; color: #7e22ce; }
