/* ===================================================
   BROKER LDA – Intranet Login Stylesheet
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #001f4d;
  --blue-800: #003F8A;
  --blue-600: #0060C7;
  --blue-400: #1a8fe3;
  --blue-50:  #eaf4fd;
  --white:    #ffffff;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;

  --font: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  /* Fundo azul elegante (Gradiente sutil entre dois tons de azul escuro) */
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; transition: var(--transition);
  cursor: pointer; border: 2px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--blue-600); color: var(--white); border-color: var(--blue-600);
}
.btn-primary:hover {
  background: var(--blue-800); border-color: var(--blue-800);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 96, 199, 0.4);
}

/* ==========================================
   LOGIN PAGE STRUCTURE
   ========================================== */
.login-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.login-container {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* Detalhe visual no topo do card */
.login-container::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* --- NOVA CLASSE PARA A LOGO --- */
.login-logo {
  max-height: 65px; /* Controla a altura da logo */
  width: auto;
  margin: 0 auto 1.5rem auto; /* Centraliza e dá margem embaixo */
  display: block;
  object-fit: contain;
}

.login-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 0.5rem; }
.login-header p { font-size: 0.9rem; color: var(--gray-500); }

/* ---------- Form Styles ---------- */
.login-form .form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block; font-size: 0.9rem; font-weight: 600;
  color: var(--gray-900); margin-bottom: 0.5rem;
}

.input-with-icon { position: relative; }
.input-with-icon i {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--gray-500); font-size: 0.9rem;
}

.input-with-icon input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-900);
  transition: var(--transition);
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px var(--blue-50);
}

.login-options {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; margin-bottom: 1.5rem;
}

.remember-me { display: flex; align-items: center; gap: 0.4rem; color: var(--gray-700); cursor: pointer; }
.forgot-password { color: var(--blue-600); font-weight: 600; }
.forgot-password:hover { text-decoration: underline; }

.login-btn { width: 100%; justify-content: center; padding: 1rem; font-size: 1rem; }

.login-footer {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); text-align: center;
}
.login-footer p { font-size: 0.8rem; color: var(--gray-500); line-height: 1.5; }

/* Estilos para a mensagem de feedback do Login */
.login-mensagem {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

/* Cor vermelha para erros */
.login-mensagem.erro {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #f87171;
}

/* Cor verde para sucesso */
.login-mensagem.sucesso {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #4ade80;
}