/* ============================================================
   LOGIN.CSS — Tela Split Screen Premium
   ============================================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* O SEGREDO ESTÁ AQUI: Resetamos o padding e background do global.css */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #0f172a !important; 
  color: #1e293b;
  min-height: 100vh;
  padding: 0 !important; 
  margin: 0 !important;
  overflow: hidden;
}

.login-container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* =========================================
   LADO ESQUERDO (Branding)
   ========================================= */
.login-left {
  flex: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px;
  /* Imagem de fundo cobrindo tudo */
  background: url('../img/fundo.jpeg') center center / cover no-repeat;
  overflow: hidden;
}

/* Overlay escuro */
.left-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.75) 100%);
  z-index: 1;
}

.left-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Logo Gigante */
.logo-wrapper {
  margin-bottom: -75px; /* Reduzido para aproximar o texto */
}

.logo-branca {
  width: 100%;
  max-width: 650px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  top: 0;
}

/* Frase de Impacto */
.headline h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 16px; /* Ajustado */
  letter-spacing: -0.02em;
}

.headline p {
  font-size: 1.15rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 550px;
  font-weight: 400;
  margin-top: 0; /* Garante que não haja margem extra do parágrafo */
}

/* =========================================
   LADO DIREITO (Formulário)
   ========================================= */
.login-right {
  flex: 1;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  z-index: 10;
}

.form-wrapper {
  width: 100%;
  max-width: 380px;
  animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-header {
  margin-bottom: 36px;
}

.form-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.form-header p {
  color: #64748b;
  font-size: 0.95rem;
}

/* Alertas de erro */
.erro {
  background: #fef2f2;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 0;
  margin-bottom: 24px;
  font-size: 0.88rem;
  display: none;
  font-weight: 500;
  border-left: 4px solid #dc2626;
}

.erro.visivel {
  display: block;
}

/* Inputs */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-wrapper {
  position: relative;
}

.form-group input {
  width: 100%;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 0; /* Quadradão */
  font-size: 1rem;
  font-family: 'Inter', inherit;
  background: #ffffff;
  color: #0f172a;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.1);
}

.form-group input::placeholder {
  color: #94a3b8;
}

/* Botão de Entrar */
.btn-entrar {
  width: 100%;
  padding: 18px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-entrar:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.2);
}

.btn-entrar:active {
  transform: translateY(0);
}

.btn-entrar:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Rodapé */
.rodape {
  margin-top: 40px;
  text-align: left;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rodape .dot {
  margin: 0 8px;
}

/* Animações */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsividade */
@media (max-width: 1024px) {
  .login-left { flex: 1; padding: 40px; }
  .headline h1 { font-size: 2.5rem; }
  .logo-branca { max-width: 400px; }
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    overflow-y: auto;
  }
  
  .login-left {
    flex: none;
    min-height: 35vh;
    padding: 30px 20px;
  }
  
  .logo-wrapper { margin-bottom: 20px; }
  .logo-branca { max-width: 300px; }
  .headline h1 { font-size: 1.8rem; }
  .headline p { display: none; }
  
  .login-right {
    flex: 1;
    padding: 30px 20px;
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
    z-index: 20;
  }
}