/* resetar margens padrão e definir modelo de caixa */
html {
  box-sizing: border-box;
  font-size: 16px; /* Define a base para a unidade rem */
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--neutral-neutral-border-day, #e8edf2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", sans-serif;
}

.top-bar {
  width: 100%;
  min-height: 94px;
  background: var(--neutral-neutral-bg-day, #fff);
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  width: 53px;
  height: 50px;
  flex-shrink: 0;
  background: url("../images/Ativo_2_1.png") rgb(255, 255, 255) 50% / cover
    no-repeat;
}

.nome {
  color: var(--neutral-neutral-500-day, #414149);
  font-size: 1.47rem;
  font-weight: 600;
  line-height: 1;
  margin-left: 0.625rem;
  /* AJUSTE: Deslocando o nome ligeiramente para baixo para corresponder ao design original */
  position: relative;
  top: 3px;
}

.login-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.875rem;
  border-radius: 1rem;
  border: 1px solid var(--neutral-neutral-border-day, #e8edf2);
  background: var(--neutral-neutral-bg-day, #fff);
  padding: 2.5rem;
  width: 100%;
  max-width: 482px;
}

.welcome-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.planet-icon {
  width: 4rem;
  height: 4rem;
}

.welcome-title {
  color: var(--neutral-neutral-1100-day, #07070c);
  text-align: center;
  font-feature-settings: "liga" off, "clig" off;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.welcome-subtitle {
  color: var(--neutral-neutral-500-day, #7e7e8f);
  text-align: center;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

/* Seções de input */
.email-section,
.password-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.email-label,
.password-label {
  color: var(--neutral-neutral-1100-day, #07070c);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
}

.email-input-container,
.password-input-container {
  display: flex;
  width: 100%;
  padding: 0.9375rem;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid var(--neutral-neutral-border-day, #e8edf2);
  background: var(--neutral-neutral-bg-day, #fff);
  transition: border-color 0.3s ease;
}

.email-input-container:hover,
.password-input-container:hover {
  border-color: var(--State-Focus, #90caf9);
}

.email-input,
.password-input {
  flex: 1;
  border: none;
  outline: none;
  color: var(--neutral-neutral-1100-day, #07070c);
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  line-height: 1.25;
  background: transparent;
}

.email-input::placeholder,
.password-input::placeholder {
  color: var(--neutral-neutral-300-day, #c6cbd9);
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
}

/* Botão de Login */
.login-button {
  display: flex;
  width: 100%;
  max-width: 22.5rem; /* 360px -> 22.5rem */
  height: 3.25rem; /* 52px -> 3.25rem */
  padding: 0 1.5rem; /* 24px -> 1.5rem */
  font-size: 1rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem; /* 8px -> 0.5rem */
  border-radius: 1rem; /* 16px -> 1rem */
  background: var(--Brand-Brand-1, #1e88e5);
  border: 3px solid transparent;
  cursor: pointer;
  color: var(--gray-9-white, #fff);
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.login-button:hover {
  border-color: var(--State-Focus, #90caf9);
}

/* Mensagem de contato */
.contact-message {
  color: var(--neutral-neutral-1100-day, #07070c);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
  margin: 0;
  text-align: center;
}

.contact-link {
  color: var(--Brand-Brand-1, #1e88e5);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Footer */
.main-footer {
  width: 100%;
  padding: 1.5rem 2rem 2.2rem;
  background: var(--neutral-neutral-border-day, #e8edf2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-line {
  width: 100%;
  max-width: 1503px;
  height: 1px;
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%),
    #7e7e8f;
  margin: 0 auto 1.5rem;
}

.footer-content {
  width: 100%;
  max-width: 1150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: var(--neutral-neutral-900-day, #262631);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-link {
  color: var(--neutral-neutral-900-day, #262631);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--Brand-Brand-1, #1e88e5);
  text-decoration: underline;
}

/* Media Queries para Responsividade */

/* Telas de tablet */
@media (max-width: 768px) {
  .top-bar {
    padding: 1rem 1.5rem;
  }

  .nome {
    font-size: 1.25rem;
  }

  .login-box {
    padding: 2rem;
    gap: 1.5rem;
  }

  .welcome-title {
    font-size: 1.3rem;
  }

  .footer-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

/* Telas de smartphone */
@media (max-width: 480px) {
  .top-bar {
    padding: 1rem;
  }

  .logo {
    width: 45px;
    height: 42px;
  }

  .nome {
    font-size: 1.1rem;
  }

  .login-container {
    padding: 0.5rem;
  }

  .login-box {
    padding: 1.5rem 1rem;
    gap: 1.2rem;
  }

  .welcome-title {
    font-size: 1.2rem;
  }

  .welcome-subtitle {
    font-size: 0.8rem;
  }

  .login-button {
    /* Ajuste do botão para telas pequenas */
    height: auto;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .email-input,
  .password-input,
  .email-input::placeholder,
  .password-input::placeholder,
  .contact-message,
  .contact-link {
    font-size: 0.8rem;
  }
}

/* ===================================================================== */
/* ===== INÍCIO DA ALTERAÇÃO (ESCALA FLUIDA PARA TELAS GRANDES) ========= */
/* ===================================================================== */

@media (min-width: 1921px) {
  /*
   * Usamos clamp() para a fonte base.
   * - Mínimo: 18px (nunca será menor que isso)
   * - Preferido: 1.1vw (cresce com a largura da tela)
   * - Máximo: 22px (nunca será maior que isso, mesmo em telas 8K)
   */
  html {
    font-size: clamp(18px, 1.1vw, 22px);
  }

  /*
   * As larguras máximas também são ajustadas para dar mais espaço
   * ao conteúdo que agora está maior.
   */
  .login-box {
    max-width: 620px;
    gap: 2rem; /* Aumenta o espaço entre os elementos do formulário */
  }

  .footer-line {
    max-width: 1800px;
  }

  .footer-content {
    max-width: 1600px;
  }
}

/* ===================================================================== */
/* ======================== FIM DA ALTERAÇÃO =========================== */
/* ===================================================================== */
