/* Reset básico para remover margens e paddings padrão */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilo geral do corpo */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom right, #000000, #2739b1);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Overlay para escurecer a página */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

.overlay.active {
  display: block;
}

/* Container para os botões no topo */
.top-buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.top-buttons button {
  width: 100px;
  padding: 10px;
  background: #007bff;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  text-align: center;
}

.top-buttons button:hover {
  background: #0056b3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Estilo do cabeçalho */
header {
  background: url('https://www.kado.art.br/images/f.calc.png') no-repeat center center;
  background-size: cover;
  border-bottom: 1px solid #e0e0e0;
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

header p {
  font-size: 1.1rem;
  color: #ddd;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

/* Container principal */
.container {
  flex: 1 0 auto;
  max-width: 800px;
  margin: 40px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #333;
  text-align: left;
}

/* Botões */
button {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s, box-shadow 0.3s;
}

button:hover {
  background-color: #45a049;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Estilo do rodapé */
footer {
  flex-shrink: 0;
  background: #000;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #333;
  color: #ccc;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

footer nav a {
  color: #4CAF50;
  margin: 0 10px;
  text-decoration: none;
}

footer nav a:hover {
  text-decoration: underline;
}

/* Estilos do register.php */
.content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.logo {
  width: 300px;
  height: 150px;
  margin-bottom: 20px;
}

h2 {
  color: #fff;
  font-family: 'Golos Text', sans-serif;
  font-size: 32px;
  margin-bottom: 10px;
}

h1 {
  font-family: 'Golos Text', sans-serif;
  font-size: 2rem;
  color: #007bff;
  margin-bottom: 20px;
  text-align: center;
}

.terms-h2 {
  font-family: 'Golos Text', sans-serif;
  font-size: 1.5rem;
  color: #4CAF50;
  margin: 20px 0 10px;
}

h3 {
  font-size: 1.2rem;
  color: #333;
  margin: 15px 0 10px;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
}

.intro-text {
  color: #fff;
  font-size: 16px;
  max-width: 400px;
  margin-bottom: 20px;
}

.message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

form {
  max-width: 400px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  text-align: left;
}

label {
  display: block;
  margin: 10px 0 5px;
  text-align: left;
  color: #333;
}

.input-group {
  position: relative;
  margin-bottom: 10px;
}

input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  height: 150px;
  resize: vertical;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #333;
}

.password-requirements {
  color: #333;
  font-size: 12px;
  margin-top: 5px;
  text-align: left;
}

.terms-checkbox {
  margin: 15px 0;
  color: #333;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.terms-checkbox input[type="checkbox"] {
  margin-right: 10px;
}

.terms-checkbox a {
  color: #4CAF50;
  text-decoration: none;
}

.terms-checkbox a:hover {
  text-decoration: underline;
}

a {
  color: #4CAF50;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Referência para e-mail (mantido inline no PHP por compatibilidade) */
.email-container {
  font-family: 'Poppins', sans-serif;
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(to bottom right, #000000, #2739b1);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
}

.email-header {
  text-align: center;
}

.email-logo {
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.email-content {
  background: #fff;
  color: #333;
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0;
}

.email-button {
  text-align: center;
}

.verify-button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

.verify-link {
  color: #4CAF50;
}

.email-footer {
  text-align: center;
  font-size: 12px;
}

/* Estilos específicos do index.php */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  gap: 40px;
}

.logo-section {
  width: 100%;
  max-width: 400px;
  text-align: left;
}

.text-and-login {
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* Alinha pelo topo em vez de centralizar verticalmente */
  justify-content: center;
  width: 100%;
  gap: 40px;
  flex-wrap: wrap;
  min-height: 260px;
  padding-top: -20px; /* Adiciona espaço no topo para melhor balanceamento */
}

.text-section {
  max-width: 400px;
  text-align: left;
}

.login-section {
  position: relative;
  width: 550px;
  height: 260px;
  flex-shrink: 0;
  overflow: visible;
  margin-top: 170px; /* Ajusta a posição vertical para alinhar com o texto */
}

.login-box {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  width: 350px;
  text-align: center;
  z-index: 1;
  position: absolute;
  bottom: 0;
  left: 0;
}

.login-box label {
  display: block;
  margin: 10px 0 5px;
  text-align: left;
  color: #333;
}

.login-box input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
  color: #495057;
}

.login-box a {
  color: #4CAF50;
  text-decoration: none;
}

.login-box a:hover {
  text-decoration: underline;
}

.login-box p {
  margin-top: 10px;
}

.image {
  position: absolute;
  top: -150px; /* Mantém a imagem acima do box */
  right: -60px; /* Mantém à direita */
  width: 360px;
  height: 230px;
  background: url('/tela.webp') no-repeat center;
  background-size: contain;
  z-index: 2;
  transition: top 0.3s ease, right 0.3s ease;
}

.text-large {
  color: #fff;
  font-family: 'Golos Text', sans-serif !important;
  font-size: 50px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 20px;
}

.text-small {
  color: #fff;
  font-size: 16px;
}

.text-small ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.text-small li {
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .main-content {
    gap: 20px;
  }
  .logo-section {
    max-width: 100%;
    text-align: center;
  }
  .text-and-login {
    flex-direction: column;
    align-items: center; /* Centraliza em telas menores */
    gap: 20px;
    padding-top: 10px; /* Menor padding em telas pequenas */
  }
  .text-section {
    max-width: 100%;
    text-align: center;
  }
  .login-section {
    position: static;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-top: 0; /* Remove o ajuste vertical em telas pequenas */
  }
  .login-box {
    position: static;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .image {
    position: static;
    width: 300px;
    height: 260px;
    margin: 0 auto 20px auto;
  }
  .text-large {
    font-size: 24px;
  }
  .text-small {
    font-size: 12px;
  }
  .text-small ul {
    padding-left: 0;
    list-style-position: inside;
  }
}

@media (max-width: 768px) {
  .container {
    margin: 20px auto;
    padding: 20px;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  h3 {
    font-size: 1rem;
  }
  p, li {
    font-size: 0.9rem;
  }
}