@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;900&display=swap");

/* Variáveis CSS */
:root {
  --primary-color: #2d9c3c;
  --secondary-color: #1a5c23;
  --background-color: #f5f5f5;
  --text-color: #333;
  --border-color: #ddd;
  --error-color: #dc3545;
  --success-color: #28a745;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;

  background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header e Navegação */
.header {
  background: linear-gradient(90deg, rgb(26, 92, 35), rgb(39, 134, 62));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 60px; /* Altura do header */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 50px;
  margin-top: 10px;
}

.btn-login {
  background-color: #ffffff;
  color: #1a5c23;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-login:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Container principal */
.container {
  flex: 1;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  position: relative;
}

.container-header {
  width: 1200px;
  position: relative; /* Garante que esteja acima do pseudo-elemento */
  z-index: 1;
}

.container h1 {
  color: #fff;
  padding: 10px 0;
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  background-color: rgb(26, 92, 35);
  padding: 10px 30px;
  margin-bottom: 10px;
  border-radius: 10px;
  z-index: 10;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      to right bottom,
      rgba(26, 92, 35, 0.5),
      rgba(39, 134, 62, 0.3)
    ),
    url("/assets/background.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.2; /* Deixa a imagem "fraca" */
  z-index: 0;
}

/* Formulário de simulação */
.simulation-form {
  background: linear-gradient(90deg, rgb(26, 92, 35), rgb(39, 134, 62));
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  width: 1200px;
  position: relative; /* Garante que esteja acima do pseudo-elemento */
  z-index: 1;
  color: #fff;
}

.simulation-form h1 {
  color: #fff;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 10px 0;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input,
select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* Modal de Login */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  position: relative;
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer */
.footer {
  background: linear-gradient(90deg, #1a5c23, #27863e);
  padding: 1rem;
  text-align: center;
  height: 60px; /* Altura do footer */

  bottom: 0;
  width: 100%;
}

.footer p {
  color: #ffffff;
  font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .simulation-form {
    padding: 1rem;
  }

  .modal-content {
    margin: 10% auto;
    width: 90%;
  }
}

/* Mensagens de erro e sucesso */
.error-message {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.success-message {
  color: var(--success-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
