/* login.css — Vero Monitor */

:root, [data-theme="light"] {
      --bg-main:        #f5f3ff;
      --bg-left-from:   #ede9fe;
      --bg-left-to:     #f0edff;
      --bg-right:       #ffffff;
      --border-split:   rgba(139,92,246,0.15);
      --grid-color:     rgba(139,92,246,0.06);
      --text-primary:   #1e1b4b;
      --text-secondary: rgba(30,27,75,0.55);
      --text-muted:     rgba(30,27,75,0.38);
      --text-eyebrow:   #7c3aed;
      --accent:         #7c3aed;
      --accent-hover:   #6d28d9;
      --accent-light:   #7c3aed;
      --accent-glow:    rgba(124,58,237,0.25);
      --input-bg:       rgba(124,58,237,0.03);
      --input-bg-f:     rgba(124,58,237,0.06);
      --input-border:   rgba(124,58,237,0.15);
      --input-border-f: rgba(124,58,237,0.50);
      --input-text:     #1e1b4b;
      --input-ph:       rgba(30,27,75,0.25);
      --error-bg:       rgba(239,68,68,0.06);
      --error-border:   rgba(239,68,68,0.20);
      --error-text:     #dc2626;
      --menu-bg:        #ffffff;
      --menu-border:    rgba(139,92,246,0.15);
      --menu-hover:     rgba(124,58,237,0.06);
      --menu-text:      #1e1b4b;
    }

    [data-theme="dark"] {
      --bg-main:        #09070f;
      --bg-left-from:   #130d24;
      --bg-left-to:     #09070f;
      --bg-right:       #09070f;
      --border-split:   rgba(139,92,246,0.12);
      --grid-color:     rgba(139,92,246,0.05);
      --text-primary:   #ffffff;
      --text-secondary: rgba(255,255,255,0.40);
      --text-muted:     rgba(255,255,255,0.22);
      --text-eyebrow:   #a78bfa;
      --accent:         #7c3aed;
      --accent-hover:   #6d28d9;
      --accent-light:   #a78bfa;
      --accent-glow:    rgba(124,58,237,0.35);
      --input-bg:       rgba(255,255,255,0.03);
      --input-bg-f:     rgba(139,92,246,0.06);
      --input-border:   rgba(255,255,255,0.08);
      --input-border-f: rgba(139,92,246,0.45);
      --input-text:     #ffffff;
      --input-ph:       rgba(255,255,255,0.18);
      --error-bg:       rgba(239,68,68,0.08);
      --error-border:   rgba(239,68,68,0.25);
      --error-text:     #f87171;
      --menu-bg:        #1a1528;
      --menu-border:    rgba(139,92,246,0.18);
      --menu-hover:     rgba(124,58,237,0.10);
      --menu-text:      #f0ecff;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html, body {
      height: 100%;
      background: var(--bg-main);
      color: var(--text-primary);
      font-family: 'Outfit', sans-serif;
      font-size: 14px;
      -webkit-font-smoothing: antialiased;
    }

    /* ─── Keyframes ─── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
    @keyframes floatLogo {
      0%, 100% { transform: translateY(0px); }
      50%       { transform: translateY(-6px); }
    }
    @keyframes shimmer {
      0%   { background-position: -400px 0; }
      100% { background-position: 400px 0; }
    }
    @keyframes dotPulse {
      0%, 100% { opacity: .5; transform: scale(1); }
      50%       { opacity: 1;  transform: scale(1.4); }
    }

    .login-wrap { display: flex; height: 100vh; overflow: hidden; }

    /* ══ PAINEL ESQUERDO ══ */
    .login-left {
      flex: 1.1;
      background: linear-gradient(160deg, var(--bg-left-from), var(--bg-left-to));
      border-right: 1px solid var(--border-split);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 48px;
      padding: 56px 64px;
      position: relative;
      overflow: hidden;
    }

    /* Grid de fundo */
    .login-left::before {
      content: '';
      position: absolute; inset: 0;
      background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
      background-size: 40px 40px;
      pointer-events: none;
      animation: fadeIn .8s ease both;
    }

    /* Glow de fundo */
    .login-left-glow {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: 420px; height: 420px;
      background: radial-gradient(ellipse, rgba(124,58,237,0.12) 0%, transparent 70%);
      pointer-events: none;
      animation: fadeIn 1.2s ease both;
    }

    .login-left-content {
      position: relative; z-index: 1;
      text-align: center;
      animation: fadeUp .7s ease .1s both;
    }

    /* Logo */


    .login-brand-title {
      font-size: 38px;
      font-weight: 600;
      letter-spacing: -0.8px;
      line-height: 1.1;
      margin-bottom: 16px;
    }
    .login-brand-title span { color: var(--accent-light); }

    .login-brand-subtitle {
      font-size: 15px;
      color: var(--text-secondary);
      line-height: 1.75;
      max-width: 360px;
      margin-left: auto;
      margin-right: auto;
    }

    /* Divisor animado */
    .login-left-divider {
      position: relative; z-index: 1;
      width: 100%; max-width: 400px;
      height: 1px;
      background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border-split) 30%,
        rgba(167,139,250,0.4) 50%,
        var(--border-split) 70%,
        transparent 100%
      );
      background-size: 400px 100%;
      animation: fadeIn .6s ease .4s both, shimmer 3s linear 1.2s infinite;
    }

    /* Features */
    .login-features {
      position: relative; z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 24px;
      animation: fadeUp .7s ease .5s both;
    }

    .login-feature-item {
      display: flex;
      align-items: flex-start;
      gap: 16px;
    }

    .login-feature-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--accent-light);
      flex-shrink: 0;
      margin-top: 7px;
    }

    /* Pulso escalonado por item */
    .login-feature-item:nth-child(1) .login-feature-dot { animation: dotPulse 2.4s ease-in-out .8s infinite; }
    .login-feature-item:nth-child(2) .login-feature-dot { animation: dotPulse 2.4s ease-in-out 1.2s infinite; }
    .login-feature-item:nth-child(3) .login-feature-dot { animation: dotPulse 2.4s ease-in-out 1.6s infinite; }

    .login-feature-body { display: flex; flex-direction: column; gap: 3px; }
    .login-feature-title { font-size: 14px; font-weight: 500; }
    .login-feature-desc  { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

    /* Rodapé esquerdo */
    .login-left-footer {
      position: absolute; bottom: 28px;
      z-index: 1;
      font-size: 11px;
      font-family: 'JetBrains Mono', monospace;
      color: var(--text-muted);
      opacity: .5;
      letter-spacing: .5px;
      animation: fadeIn 1s ease 1s both;
    }

    /* ══ PAINEL DIREITO ══ */
    .login-right {
      flex: 0.9;
      background: var(--bg-right);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      padding: 48px 40px; position: relative;
    }

    /* ── Menu de 3 pontos ── */
    .menu-wrap {
      position: absolute; top: 16px; right: 16px;
      z-index: 50;
    }

    .menu-trigger {
      width: 36px; height: 36px; border-radius: 50%;
      border: 1px solid var(--menu-border);
      background: rgba(124,58,237,0.08);
      cursor: pointer;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 3.5px;
      transition: background .2s, transform .2s;
    }
    .menu-trigger:hover { background: rgba(124,58,237,0.16); transform: scale(1.08); }

    .menu-trigger-dot {
      width: 3.5px; height: 3.5px; border-radius: 50%;
      background: var(--accent-light);
      transition: background .2s;
    }

    /* Dropdown */
    .menu-dropdown {
      position: absolute; top: calc(100% + 8px); right: 0;
      background: var(--menu-bg);
      border: 1px solid var(--menu-border);
      border-radius: 10px;
      padding: 6px;
      min-width: 160px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.12);
      opacity: 0; pointer-events: none;
      transform: translateY(-6px) scale(.97);
      transform-origin: top right;
      transition: opacity .18s ease, transform .18s ease;
    }

    .menu-wrap.open .menu-dropdown {
      opacity: 1; pointer-events: all;
      transform: translateY(0) scale(1);
    }

    .menu-item {
      display: flex; align-items: center; gap: 10px;
      padding: 9px 12px; border-radius: 7px;
      font-size: 13px; color: var(--menu-text);
      cursor: pointer; transition: background .15s;
      border: none; background: none;
      font-family: 'Outfit', sans-serif;
      width: 100%; text-align: left;
    }
    .menu-item:hover { background: var(--menu-hover); }
    .menu-item svg { flex-shrink: 0; color: var(--accent-light); }
    .menu-item.active { font-weight: 500; color: var(--accent-light); }

    .menu-separator {
      height: 1px; background: var(--menu-border);
      margin: 4px 6px;
    }

    .menu-label {
      font-size: 10px; font-family: 'JetBrains Mono', monospace;
      text-transform: uppercase; letter-spacing: .8px;
      color: var(--text-muted); padding: 6px 12px 2px;
    }

    /* Form */
    .login-form-wrap {
      width: 100%; max-width: 340px;
      animation: fadeUp .6s ease .2s both;
    }

    .login-form-eyebrow {
      font-size: 11px; font-family: 'JetBrains Mono', monospace;
      color: var(--text-eyebrow); text-transform: uppercase;
      letter-spacing: 1.2px; margin-bottom: 10px;
    }
    .login-form-title  { font-size: 26px; font-weight: 600; letter-spacing: -.4px; margin-bottom: 6px; }
    .login-form-desc   { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 28px; }

    .login-error {
      background: var(--error-bg); border: 1px solid var(--error-border);
      border-radius: 8px; padding: 10px 14px;
      font-size: 13px; color: var(--error-text); margin-bottom: 20px;
    }

    #login-form { display: flex; flex-direction: column; }

    .input-group { margin-bottom: 14px; }

    .input-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }

    .login-input {
      width: 100%; background: var(--input-bg);
      border: 1px solid var(--input-border); border-radius: 8px;
      padding: 11px 14px; font-size: 14px;
      font-family: 'Outfit', sans-serif; color: var(--input-text); outline: none;
      transition: border-color .2s, background .2s, box-shadow .2s;
    }
    .login-input::placeholder { color: var(--input-ph); }
    .login-input:focus {
      border-color: var(--input-border-f); background: var(--input-bg-f);
      box-shadow: 0 0 0 3px rgba(124,58,237,0.10);
    }

    .strength-bar-wrap {
      height: 2px; border-radius: 2px; margin-top: 6px;
      background: rgba(128,128,128,0.10); overflow: hidden;
    }
    .strength-bar { height: 100%; width: 0; border-radius: 2px; transition: width .35s ease, background-color .35s ease; }

    .btn-login {
      width: 100%; margin-top: 8px; padding: 12px;
      border-radius: 8px; background: var(--accent); color: #fff;
      font-size: 14px; font-weight: 500; font-family: 'Outfit', sans-serif;
      border: none; cursor: pointer; letter-spacing: .1px;
      transition: background .2s, box-shadow .2s, transform .15s;
    }
    .btn-login:hover { background: var(--accent-hover); box-shadow: 0 4px 20px var(--accent-glow); transform: translateY(-1px); }
    .btn-login:active { transform: translateY(0); }

    .login-footer {
      position: absolute; bottom: 16px;
      left: 50%; transform: translateX(-50%);
      white-space: nowrap;
      font-size: 11px; color: var(--text-muted);
    }

/* ── Logo animada no painel direito ── */
.login-right-logo {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-right-logo-img {
  height: 96px;
  width: auto;
  object-fit: contain;
  animation: floatLogo 2.5s ease-in-out infinite;
  filter: drop-shadow(0 6px 20px rgba(124,58,237,0.18));
}

/* ── Banner lado esquerdo ── */
@keyframes bannerEntrance {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes bannerFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-6px) scale(1.01); }
}

.login-banner-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 840px;
  animation:
    bannerEntrance .7s ease .1s both,
    bannerFloat 4s ease-in-out 1s infinite;
}

.login-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(124,58,237,0.18),
    0 2px 8px rgba(0,0,0,0.12);
}

/* Placeholder enquanto banner_login.png não existe */
.login-banner-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  border: 1px dashed var(--border-split);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(124,58,237,0.03);
  min-height: 220px;
}

.login-banner-placeholder svg {
  opacity: .4;
}
/* ── Termos de Uso e Política de Privacidade ── */
.login-terms {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.login-terms-link {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .15s;
}

.login-terms-link:hover {
  opacity: .7;
  text-decoration: underline;
}

/* ══════════════════════════════════════════
   RESPONSIVO — Mobile e Tablet
   ══════════════════════════════════════════ */

/* Tablet: esconde o banner mas mantém split */
@media (max-width: 900px) {
  .login-left {
    display: none;
  }

  .login-right {
    flex: 1;
    width: 100%;
  }
}

/* Mobile: layout em coluna, formulário ocupa tela toda */
@media (max-width: 600px) {
  html, body {
    height: auto;
    min-height: 100%;
  }

  .login-wrap {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .login-left {
    display: none;
  }

  .login-right {
    flex: 1;
    width: 100%;
    min-height: 100vh;
    padding: 40px 24px 80px;
    justify-content: flex-start;
    padding-top: 60px;
  }

  /* Logo menor no mobile */
  .login-right-logo {
    margin-bottom: 16px;
  }

  .login-right-logo-img {
    height: 72px;
  }

  /* Formulário ocupa toda a largura */
  .login-form-wrap {
    max-width: 100%;
    width: 100%;
  }

  .login-form-title {
    font-size: 22px;
  }

  .login-form-desc {
    font-size: 13px;
    margin-bottom: 20px;
  }

  /* Inputs maiores para toque */
  .login-input {
    padding: 14px 16px;
    font-size: 16px; /* evita zoom automático no iOS */
  }

  .btn-login {
    padding: 14px;
    font-size: 15px;
  }

  /* Menu de 3 pontos no mobile */
  .menu-wrap {
    top: 12px;
    right: 12px;
  }

  /* Footer fixo no mobile */
  .login-footer {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    text-align: center;
    margin-top: 24px;
    display: block;
    white-space: normal;
  }

  /* Termos */
  .login-terms {
    margin-top: 16px;
    font-size: 11.5px;
    padding: 0 8px;
  }

  /* Remove animação flutuante da logo no mobile (performance) */
  .login-right-logo-img {
    animation: none;
    filter: drop-shadow(0 4px 12px rgba(124,58,237,0.15));
  }
}