/* ============================================================
   AlphaNet — Tela de Login
   Layout dois painéis: brand (esquerda) + formulário (direita)
   ============================================================ */

/* ── Layout principal ── */
.login-layout {
  display: flex;
  min-height: 100vh;
}

/* ══════════════════════════════════════════
   PAINEL ESQUERDO — Identidade da marca
   ══════════════════════════════════════════ */
.brand-panel {
  flex: 0 0 54%;
  position: relative;
  background: var(--color-bg-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s12);
}

/* Grade sutil como textura de fundo */
.brand-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(84, 23, 245, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 23, 245, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* Brilhos atmosféricos */
.brand-glow-top {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(84, 23, 245, 0.09) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}
.brand-glow-bottom {
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(84, 23, 245, 0.06) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

/* Linha neon vertical na borda direita */
.brand-divider {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(84, 23, 245, 0.12) 25%,
    rgba(84, 23, 245, 0.45) 50%,
    rgba(84, 23, 245, 0.12) 75%,
    transparent 100%
  );
}

/* ── Logotipo ── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: var(--color-text-primary);
}

/* ── Conteúdo central da brand ── */
.brand-content {
  position: relative;
  z-index: 1;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: rgba(84, 23, 245, 0.07);
  border: 1px solid rgba(84, 23, 245, 0.14);
  color: var(--color-neon);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--s8);
}

.brand-badge-dot {
  width: 5px;
  height: 5px;
  background: var(--color-neon);
  border-radius: 50%;
  animation: badge-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.brand-headline {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--color-text-primary);
  margin-bottom: var(--s5);
}

.brand-headline .accent {
  color: var(--color-neon);
}

.brand-sub {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 360px;
}

/* ── Rodapé da brand: estatísticas ── */
.brand-footer {
  display: flex;
  align-items: center;
  gap: var(--s6);
  position: relative;
  z-index: 1;
}

.brand-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--color-text-primary);
}

.brand-stat-label {
  font-size: 11.5px;
  color: var(--color-text-muted);
}

.brand-stat-sep {
  width: 1px;
  height: 28px;
  background: var(--color-border-mid);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   PAINEL DIREITO — Formulário
   ══════════════════════════════════════════ */
.form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s12);
  background: var(--color-bg);
}

.form-container {
  width: 100%;
  max-width: 375px;
}

/* ── Cabeçalho do formulário ── */
.form-header {
  margin-bottom: var(--s10);
}

.form-title {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--color-text-primary);
  margin-bottom: 5px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ── Campos ── */
.form-group {
  margin-bottom: var(--s5);
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--s2);
  letter-spacing: 0.01em;
}

.input-wrap {
  position: relative;
}

.input-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.input.with-ico {
  padding-left: 42px;
}

.input-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: var(--s1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: color var(--t-fast);
}
.input-toggle:hover { color: var(--color-text-primary); }

.forgot-link {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--color-neon);
  text-decoration: none;
  margin-top: var(--s2);
  transition: opacity var(--t-fast);
}
.forgot-link:hover { opacity: 0.65; }

/* ── Botão de envio ── */
.btn-login {
  width: 100%;
  padding: 14px;
  font-size: 14.5px;
  margin-top: var(--s8);
  border-radius: var(--radius-md);
}

/* ── Rodapé do formulário ── */
.form-footer {
  margin-top: var(--s6);
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
}
.form-footer a {
  color: var(--color-neon);
  text-decoration: none;
  font-weight: 500;
}
.form-footer a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   RESPONSIVO — Mobile
   ══════════════════════════════════════════ */
@media (max-width: 800px) {
  .login-layout {
    flex-direction: column;
  }

  .brand-panel {
    flex: none;
    padding: var(--s8) var(--s6);
    min-height: auto;
  }

  /* Esconde o conteúdo textual pesado no mobile */
  .brand-content,
  .brand-footer {
    display: none;
  }

  .brand-divider {
    width: 100%;
    height: 1px;
    top: auto;
    bottom: 0;
    background: linear-gradient(
      to right,
      transparent 0%,
      rgba(84, 23, 245, 0.45) 50%,
      transparent 100%
    );
  }

  .brand-glow-top,
  .brand-glow-bottom {
    display: none;
  }

  .form-panel {
    padding: var(--s8) var(--s6);
    align-items: flex-start;
  }
}
