
$0/* ================================================================
   PaintLab AI — Ultra-Modern Login Screen v5.0
   Design industrial premium | PWA Edition
================================================================ */

/* ── Canvas principal ────────────────────────────────────────── */
.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
}
/* ── Fundo com malha técnica e gradiente ─────────────────────── */
.login-bg-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Gradiente de fundo */
.login-bg-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(20,65,150,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 70%, rgba(201,164,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 10%, rgba(20,65,150,0.1) 0%, transparent 55%);
}

/* Grade técnica industrial */
.login-bg-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77,127,212,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,127,212,0.05) 1px, transparent 1px),
    linear-gradient(rgba(77,127,212,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,127,212,0.02) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

/* ── Blobs de cor ────────────────────────────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0;
  animation: blobFadeIn 1.5s ease forwards, blobFloat 14s ease-in-out infinite;
}

@keyframes blobFadeIn {
  to { opacity: 1; }
}

.blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(20,65,150,0.55), rgba(10,37,84,0.2));
  top: -300px; left: -250px;
  animation-delay: 0s, 0s;
  opacity: 0.22;
}
.blob-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,164,0,0.4), rgba(120,98,0,0.15));
  bottom: -200px; right: -200px;
  animation-delay: 0.3s, -4s;
  opacity: 0.16;
}
.blob-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(45,100,190,0.4), transparent);
  top: 35%; left: 55%;
  animation-delay: 0.6s, -7s;
  opacity: 0.12;
}
.blob-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,240,0,0.25), transparent);
  bottom: 15%; left: 8%;
  animation-delay: 0.9s, -2s;
  opacity: 0.11;
}
.blob-5 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(20,65,150,0.35), transparent);
  top: 8%; right: 15%;
  animation-delay: 1.2s, -10s;
  opacity: 0.12;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(25px, -30px) scale(1.04); }
  50%       { transform: translate(-15px, 20px) scale(0.97); }
  75%       { transform: translate(10px, -10px) scale(1.02); }
}

/* ── Partículas flutuantes ───────────────────────────────────── */
.paint-drop {
  position: absolute;
  border-radius: 50% 50% 40% 40%;
  animation: dropFloat linear infinite;
  pointer-events: none;
}

.drop-1 { width:6px; height:10px; background:#144196; left:8%;  top:-20px; animation-duration:9s;  animation-delay:0s;   opacity:.5; }
.drop-2 { width:4px; height:7px;  background:#fff000; left:22%; top:-20px; animation-duration:12s; animation-delay:-3s;  opacity:.4; }
.drop-3 { width:8px; height:13px; background:#4d7fd4; left:42%; top:-20px; animation-duration:8s;  animation-delay:-5s;  opacity:.45; }
.drop-4 { width:5px; height:8px;  background:#0a2554; left:62%; top:-20px; animation-duration:11s; animation-delay:-1.5s; opacity:.4; }
.drop-5 { width:7px; height:11px; background:#e8c400; left:78%; top:-20px; animation-duration:10s; animation-delay:-7s;  opacity:.4; }
.drop-6 { width:4px; height:7px;  background:#2f5aa8; left:92%; top:-20px; animation-duration:13s; animation-delay:-4s;  opacity:.35; }

@keyframes dropFloat {
  0%   { transform: translateY(0) rotate(-35deg); opacity: 0; }
  5%   { opacity: .55; }
  90%  { opacity: .4; }
  100% { transform: translateY(110vh) rotate(-35deg); opacity: 0; }
}

/* ── Overlay grade ────────────────────────────────────────────── */
.login-grid-overlay { display: none; } /* já no ::after do canvas */

/* ═══════════════════════════════════════════════════════════════
   LAYOUT — Dois painéis lado a lado em desktop
═══════════════════════════════════════════════════════════════ */
.login-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 480px);
  width: 100%;
  max-width: 1300px;
  min-height: 600px;
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(77,127,212,0.12),
    0 32px 100px rgba(0,0,0,0.7),
    0 0 80px rgba(20,65,150,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
  animation: cardEntrance 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(50px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Linha de brilho no topo do card */
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77,127,212,0.6), rgba(255,240,0,0.7), rgba(77,127,212,0.6), transparent);
  border-radius: 1px;
}

/* ── Painel esquerdo (visual / branding) ─────────────────────── */
.login-panel-left {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px;
  background:
    linear-gradient(135deg, rgba(20,65,150,0.1) 0%, rgba(201,164,0,0.05) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(77,127,212,0.015) 0px,
      rgba(77,127,212,0.015) 1px,
      transparent 1px,
      transparent 28px
    );
  border-right: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.login-panel-left::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,0,0.18), transparent 70%);
  pointer-events: none;
}

/* Logo e ícone */
.login-brand-logo {
  width: 72px; height: 72px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow:
    0 0 0 1px rgba(255,240,0,0.25),
    0 8px 32px rgba(20,65,150,0.4),
    0 0 60px rgba(20,65,150,0.18);
  position: relative;
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(255,240,0,0.25), 0 8px 32px rgba(20,65,150,0.4), 0 0 60px rgba(20,65,150,0.18); }
  50%      { box-shadow: 0 0 0 1px rgba(255,240,0,0.4), 0 8px 40px rgba(20,65,150,0.55), 0 0 100px rgba(20,65,150,0.3); }
}

.login-brand-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Título principal */
.login-app-name {
  margin: 0 0 8px;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 60%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-app-name span {
  background: linear-gradient(135deg, #4d7fd4, #144196, #fff000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-app-tagline {
  font-size: 13.5px;
  color: #475569;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 36px;
  max-width: 340px;
}

/* Features list */
.login-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.login-feature-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.lf-blue   .login-feature-icon { background: rgba(20,65,150,0.18);   color: #6fa1e0; }
.lf-purple .login-feature-icon { background: rgba(201,164,0,0.18);   color: #e8c400; }
.lf-cyan   .login-feature-icon { background: rgba(77,127,212,0.18);  color: #4d7fd4; }
.lf-green  .login-feature-icon { background: rgba(255,240,0,0.15);   color: #d4b800; }

/* Badges no rodapé esquerdo */
.login-left-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.login-left-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: #334155;
}

/* ── Painel direito (formulário) ─────────────────────────────── */
.login-panel-right {
  flex: 1;
  min-width: 420px;
  max-width: 520px;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Título do formulário */
.login-form-heading {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.3px;
}

.login-form-sub {
  font-size: 13px;
  color: #475569;
  margin: 0 0 28px;
  font-weight: 400;
}

/* ── Mensagem de erro ────────────────────────────────────────── */
.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  animation: errorShake 0.4s ease;
}

@keyframes errorShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* ── Formulário ──────────────────────────────────────────────── */
.login-form { display: flex; flex-direction: column; gap: 16px; }

.login-field { display: flex; flex-direction: column; gap: 7px; }

.login-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.login-label i { color: #4d7fd4; font-size: 10px; }

.login-input-wrap { position: relative; }

.login-input {
  width: 100%;
  padding: 13px 46px 13px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  transition: all 0.25s ease;
  box-sizing: border-box;
  outline: none;
}

.login-input::placeholder { color: #1e293b; }

.login-input:focus {
  background: rgba(20,65,150,0.08);
  border-color: rgba(77,127,212,0.5);
  box-shadow: 0 0 0 3px rgba(77,127,212,0.12), 0 4px 14px rgba(20,65,150,0.1);
  color: #f8fafc;
}

.input-border-anim {
  position: absolute;
  bottom: 0; left: 12px; right: 12px;
  height: 2px;
  background: linear-gradient(90deg, #144196, #4d7fd4, #fff000);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  pointer-events: none;
  border-radius: 0 0 2px 2px;
}

.login-input:focus ~ .input-border-anim { transform: scaleX(1); }

.login-eye-btn {
  position: absolute;
  right: 13px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: #334155; cursor: pointer;
  padding: 4px; font-size: 14px;
  transition: color 0.2s;
}
.login-eye-btn:hover { color: #4d7fd4; }

/* ── Botão de entrar ─────────────────────────────────────────── */
.login-btn {
  position: relative;
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: 13px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 6px;
  letter-spacing: 0.2px;
}

.login-btn-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a2554, #144196 40%, #2f5aa8 70%, #c9a400);
  background-size: 200% 100%;
  transition: background-position 0.5s ease;
}

/* Shimmer animado */
.login-btn-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 20%, rgba(255,255,255,0.08) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: btnShimmer 3s linear infinite;
}

@keyframes btnShimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}

.login-btn:hover .login-btn-bg { background-position: 100% 0; }
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(20,65,150,0.45), 0 4px 12px rgba(0,0,0,0.3);
}
.login-btn:active { transform: translateY(0); }

.login-btn-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; color: white; pointer-events: none;
}

.login-btn-arrow { font-size: 13px; transition: transform 0.3s; }
.login-btn:hover .login-btn-arrow { transform: translateX(5px); }

.login-btn:disabled {
  opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none;
}

/* ── Divisor ─────────────────────────────────────────────────── */
.login-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0;
  color: #1e293b; font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}

/* ── Rodapé do formulário ────────────────────────────────────── */
.login-badges {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.login-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  font-size: 10.5px; color: #334155; font-weight: 500;
  transition: all 0.2s;
}

.login-badge:hover {
  background: rgba(20,65,150,0.1);
  border-color: rgba(20,65,150,0.3);
  color: #6fa1e0;
}

.login-badge i { font-size: 9px; }

/* ── Hint de credenciais ─────────────────────────────────────── */
.login-hint {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 13px;
  background: rgba(20,65,150,0.1);
  border: 1px solid rgba(20,65,150,0.22);
  border-radius: 10px;
  color: #6fa1e0; font-size: 12px;
  margin-top: 12px; line-height: 1.4;
}

/* ── Versão discreta ─────────────────────────────────────────── */
.login-version {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; color: #0f172a; white-space: nowrap; pointer-events: none;
}

/* Oculta elementos legados do layout antigo */
.login-icon-wrap,
.login-brand,
.login-header { display: none !important; }

/* ── Responsivo ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .login-card {
    flex-direction: column;
    width: 95vw;
    min-height: unset;
  }

  .login-panel-left {
    padding: 32px 28px 24px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .login-app-name { font-size: 30px; letter-spacing: -1px; }
  .login-app-tagline { display: none; }
  .login-features { display: none; }
  .login-left-badges { margin-top: 16px; }
  .login-brand-logo { width: 52px; height: 52px; margin-bottom: 16px; }

.login-panel-right {
  width: 100%;
  min-width: 420px;
  max-width: 480px;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .login-panel-left  { padding: 24px 20px 20px; }
  .login-panel-right { padding: 22px 20px 30px; }
  .login-app-name { font-size: 26px; }
}

/* =========================================
   FIX DESKTOP GRANDE (ULTRA IMPORTANTE)
   ========================================= */

@media (min-width: 1024px) {

  #login-screen {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #login-screen .login-card {
    display: grid !important;

    /* 🔥 isso resolve o bug */
    grid-template-columns: 1fr 480px !important;

    width: min(1400px, 92vw) !important;
    height: min(800px, 88vh) !important;

    margin: 0 auto !important;
    overflow: hidden !important;
  }

  #login-screen .login-panel-left {
    width: 100% !important;
    min-width: 0 !important;
    padding: 64px !important;
  }

  #login-screen .login-panel-right {
    width: 100% !important;
    max-width: 480px !important;
    min-width: 420px !important;
    padding: 48px !important;
  }

}
@media (min-width: 1200px) {
  .login-screen {
    padding: 32px;
    box-sizing: border-box;
  }

  .login-card {
    width: min(1300px, calc(100vw - 64px));
    margin: 0 auto;
  }
}
