/* Reset básico e Variáveis */
:root {
  --primary-blue: #00569e;
  --hover-blue: #003d73;
  --focus-blue: rgba(33, 150, 243, 0.25);
  --text-main: #111827;
  --text-sub: #6b7280;
  --text-light: #ffffff;
  --border-color: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  background-color: #ffffff;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Container Principal */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* =========================================
   Painel Esquerdo (Formulário)
   ========================================= */
.form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #ffffff;
  z-index: 2;
}

.form-content {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
}

/* Logo e Subtítulo Centralizados */
.logo-group {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centraliza a imagem e o texto horizontalmente */
  text-align: center;
}

.logo-group img {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
}

.logo-subtitle {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-top: 0.6rem;
  font-weight: 500;
  text-align: center; /* Garantia de centralização */
}

/* Textos de Boas-Vindas */
.welcome-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.welcome-subtext {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
}

/* Inputs e Form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background-color: #ffffff;
}

.form-group input:focus {
  outline: none;
  border-color: #2196F3;
  box-shadow: 0 0 0 3px var(--focus-blue);
}

/* Botão Continuar */
.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background-color: #00569e !important;
  color: #ffffff !important;
  border: none;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-top: 0.5rem;
  display: block;
  text-align: center;
}

.btn-submit:hover {
  background-color: #003d73 !important;
}

.btn-submit:active {
  transform: scale(0.99);
}

/* Nota de Rodapé Centralizada */
.security-footer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center; /* Centraliza o texto de segurança */
}

/* =========================================
   Painel Direito (Hero com Fundo Azul)
   ========================================= */
.hero-panel {
  flex: 1.2;
  position: relative;
  background: url('https://images.unsplash.com/photo-1483728642387-6c3bdd6c93e5?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem;
  color: #ffffff;
  overflow: hidden;
}

/* Overlay Azul */
.hero-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0, 59, 107, 0.9) 0%, rgba(33, 150, 243, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
}

.hero-badge {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: #90caf9;
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  color: #ffffff !important;
}

.hero-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f3f4f6;
  font-weight: 300;
}

/* =========================================
   Responsividade (Flexibilidade de Tela)
   ========================================= */
@media (max-width: 1024px) {
  .welcome-title {
    font-size: 1.5rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-panel {
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }

  .form-panel {
    flex: none;
    width: 100%;
    padding: 3rem 1.5rem;
  }

  .hero-panel {
    flex: none;
    width: 100%;
    min-height: 45vh;
    padding: 2.5rem 1.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }
}