/*
 * Tela de login — layout novo (painel roxo + card claro).
 * Standalone: não depende do style.css/Bootstrap antigo (usado ainda
 * pelas telas de redefinição de senha).
 */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f9fafb;
  color: #0D0D1F;
}

.lg-screen {
  min-height: 100vh;
  display: flex;
  background-color: #f9fafb;
}

/* ── Painel esquerdo — identidade de marca ────────────────────────── */
.lg-brand {
  display: none;
  width: 420px;
  flex-shrink: 0;
  background-color: #4a1f60;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
}

@media (min-width: 992px) {
  .lg-brand {
    display: flex;
  }
}

/* Glows decorativos desfocados */
.lg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.12;
  pointer-events: none;
}

.lg-glow-a {
  top: -80px;
  right: -80px;
  width: 288px;
  height: 288px;
  background-color: #8954A0;
}

.lg-glow-b {
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background-color: #2B1437;
}

.lg-brand-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.lg-wordmark {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}

.lg-chips {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.lg-chips span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1;
}

/* ── Painel direito — formulário ──────────────────────────────────── */
.lg-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.lg-box {
  width: 100%;
  max-width: 28rem;
}

/* Logo compacta acima do card (só quando o painel roxo some) */
.lg-mobile-logo {
  display: block;
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  color: #4a1f60;
}

@media (min-width: 992px) {
  .lg-mobile-logo {
    display: none;
  }
}

.lg-head {
  margin-bottom: 2rem;
}

.lg-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #0D0D1F;
  margin: 0;
}

.lg-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
}

.lg-card {
  background-color: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 144, 255, 0.25);
  padding: 2rem;
}

/* ── Mensagens ────────────────────────────────────────────────────── */
.lg-error,
.lg-info {
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
}

.lg-error {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
}

.lg-info {
  background-color: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #16a34a;
}

.lg-error p,
.lg-info p {
  margin: 0;
}

/* ── Campos ───────────────────────────────────────────────────────── */
.lg-field {
  margin-bottom: 1.25rem;
}

.lg-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0D0D1F;
  margin-bottom: 0.375rem;
}

.lg-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #0D0D1F;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.lg-input::placeholder {
  color: #9ca3af;
}

.lg-input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #0090FF;
}

/* Campo do código de verificação (MFA) */
.lg-input-code {
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 1.125rem;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
}

.lg-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  cursor: pointer;
  margin-bottom: 1.25rem;
  user-select: none;
}

.lg-check input {
  margin: 0;
}

/* ── Botões e links ───────────────────────────────────────────────── */
.lg-btn {
  width: 100%;
  padding: 0.625rem 1rem;
  background-image: linear-gradient(135deg, #0090FF, #7B2FFF);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 144, 255, 0.25);
  transition: opacity 0.2s ease;
}

.lg-btn:hover {
  opacity: 0.9;
}

.lg-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.lg-links {
  text-align: center;
  margin-top: 1.25rem;
}

.lg-link {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lg-link:hover {
  color: #0090FF;
  text-decoration: none;
}

/* Botão de reenvio do código durante a contagem */
.lg-link:disabled {
  color: #6b7280;
  cursor: default;
}

.lg-link:disabled:hover {
  color: #6b7280;
}

/* Texto auxiliar dentro do card (ex.: aviso de spam no MFA) */
.lg-hint {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0 0 1.25rem;
}
