/* ==========================
   🎨 BASE & VARIÁVEIS
========================== */
:root {
  --bg-gradient: radial-gradient(circle at top left, #a855f7 0, #6366f1 30%, #020617 90%);
  --card-bg: rgba(15, 23, 42, 0.92);
  --card-border: rgba(148, 163, 184, 0.4);
  --accent: #6366f1;
  --accent-soft: #4f46e5;
  --accent-strong: #a855f7;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --danger: #f97373;
  --btn-primary-bg: linear-gradient(120deg, #6366f1, #a855f7);
  --btn-primary-bg-hover: linear-gradient(120deg, #4f46e5, #9333ea);
  --btn-outline-border: rgba(148, 163, 184, 0.6);
  --radius-card: 24px;
  --shadow-card: 0 24px 60px rgba(15, 23, 42, 0.9);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.6);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease;
  --font-main: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==========================
   🌐 LAYOUT GERAL
========================== */
.login-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  background: var(--bg-gradient);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

/* GRID PRINCIPAL: HERO + CARD */
.login-layout {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

/* ==========================
   🧠 HERO / LADO ESQUERDO
========================== */
.login-hero {
  color: #e5e7eb;
  padding: 8px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 21px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.hero-tag2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.hero-title {
  margin: 0 0 10px 0;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
}

.hero-subtitle {
  margin: 0 0 14px 0;
  font-size: 19px;
  line-height: 1.7;
   color: #FFFFFF !important;
  max-width: 480px;
}

.hero-list {
  margin: 0 0 18px 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-main);
}

.hero-list li {
  margin-bottom: 4px;
}

/* 🎬 VÍDEO PUBLICITÁRIO */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 8px 0 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #020617;
}

.video-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.video-wrapper .play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96px;
  height: 96px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.9) 0, rgba(15, 23, 42, 0.3) 52%, transparent 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-med), opacity var(--transition-med);
}

.video-wrapper .play-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 32px solid #f9fafb;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  margin-left: 6px;
}

.video-wrapper:hover .play-btn {
  transform: scale(1.04);
  opacity: 0.95;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: none;
}

/* ==========================
   🃏 CARD DE LOGIN (DIREITA)
========================== */
.login-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 22px 22px 18px;
  max-width: 310px;
  width: 100%;
  backdrop-filter: blur(28px);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top right, rgba(129, 140, 248, 0.16) 0, transparent 55%),
    radial-gradient(circle at bottom left, rgba(244, 114, 182, 0.10) 0, transparent 52%);
  opacity: 0.9;
  z-index: 0;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

/* Marca / Logo */
.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 0, #facc15 0, #fb923c 28%, #c026d3 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0f172a;
  font-size: 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.85);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 15px;
  font-weight: 600;
  color: #f9fafb;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

/* Títulos do card */
.login-title {
  margin: 4px 0 4px 0;
  font-size: 18px;
  color: #f9fafb;
}

.login-subtitle {
  margin: 0 0 14px 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================
   ⚠️ ALERTA DE ERRO
========================== */
.login-alert {
  background: rgba(248, 113, 113, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.8);
  color: #fecaca;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 12px;
}

/* ==========================
   FORMULÁRIO
========================== */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12px;
  color: #e5e7eb;
}

.form-group input {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  padding: 10px 11px;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-group input::placeholder {
  color: #6b7280;
}

.form-group input:focus {
  border-color: #a855f7;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.35);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.check-label input[type="checkbox"] {
  accent-color: #a855f7;
}

/* Botão principal */
.btn-primary {
  margin-top: 4px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #f9fafb;
  background-image: var(--btn-primary-bg);
  box-shadow: 0 18px 35px rgba(79, 70, 229, 0.65);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-image var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
  background-image: var(--btn-primary-bg-hover);
  transform: translateY(-1px);
  filter: saturate(1.1);
  box-shadow: 0 22px 42px rgba(79, 70, 229, 0.75);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.6);
}

/* Divisor */
.login-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 10px 0;
  font-size: 11px;
  color: var(--text-muted);
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.7));
}

.login-divider::after {
  background: linear-gradient(to left, transparent, rgba(148, 163, 184, 0.7));
}

/* Ações secundárias */
.login-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.no-account-text {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--btn-outline-border);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.65);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-outline:hover {
  border-color: #a855f7;
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.8);
}

/* Rodapé */
.login-footer {
  margin-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding-top: 8px;
  text-align: center;
}

.login-footer p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.login-footer a {
  color: #a5b4fc;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* ==========================
   📱 RESPONSIVIDADE
========================== */
@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
  }

  .login-hero {
    text-align: center;
  }

  .hero-subtitle,
  .hero-list {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    max-width: 480px;
  }

  .video-wrapper {
    margin-left: auto;
    margin-right: auto;
  }

  .login-card {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .login-body {
    padding: 18px 12px;
  }

  .login-layout {
    gap: 18px;
  }

  .login-card {
    padding: 18px 16px 14px;
    border-radius: 20px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-list {
    font-size: 12px;
  }

  .video-wrapper {
    border-radius: 18px;
  }
}
