/* Estilos gerais */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f3f3f3;
  color: #333;
  line-height: 1.6;
}

/* Header */
.header {
  background-color: #6b3e36;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-logo {
  flex: 0 0 auto;
  margin-right: 20px;
}

.header-logo img {
  max-width: 150px;
  height: auto;
  display: block;
}

.header-title {
  flex: 1 1 auto;
}

.header-title h1 {
  margin: 0;
  font-size: 1.5em;
}

/* Menu de navegação */
.nav-menu {
  flex: 0 1 auto;
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav-menu ul li {
  margin: 0 5px;
}

.nav-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-menu ul li a:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Container principal do login */
.login-container {
  max-width: 400px;
  width: 90%;
  margin: 80px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Logo */
.logo {
  width: 200px;
  max-width: 80%;
  margin-bottom: 20px;
}

/* Título */
.login-container h1 {
  margin-bottom: 20px;
  color: #333;
}

/* Formulário */
.form-group {
  text-align: left;
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: #6b3e36;
  outline: none;
  box-shadow: 0 0 5px rgba(107, 62, 54, 0.2);
}

/* Botão */
.btn {
  display: inline-block;
  background-color: #6b3e36;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #5e342d;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Link de cadastro */
.login-container p {
  margin-top: 20px;
}

.login-container a {
  color: #6b3e36;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.login-container a:hover {
  color: #5e342d;
  text-decoration: underline;
}

/* Estilos para a página de cadastro */
.cadastro-container {
  max-width: 500px;
  width: 90%;
  margin: 50px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-align: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.cadastro-container .logo {
  width: 200px;
  margin-bottom: 20px;
}

.cadastro-container h1 {
  margin-bottom: 20px;
  color: #333;
}

/* Mensagens de erro e sucesso */
.error {
  color: #ff0000;
  background-color: #ffebee;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  border-left: 4px solid #ff0000;
}

.success {
  color: #008000;
  background-color: #e8f5e9;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  border-left: 4px solid #008000;
}

/* Main content para Dashboard */
.main-content {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
}

.module {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.module h2 {
  margin-top: 0;
  color: #6b3e36;
  margin-bottom: 15px;
}

.module p {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.module .btn {
  background-color: #6b3e36;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.module .btn:hover {
  background-color: #5e342d;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  background-color: #6b3e36;
  color: #fff;
  margin-top: 40px;
}

/* Links gerais */
a {
  color: #6b3e36;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #5e342d;
  text-decoration: underline;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-top: 20px;
  color: #6b3e36;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #5e342d;
  text-decoration: underline;
}

/* Media Queries para responsividade */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .header-logo {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .header-title {
    margin-bottom: 10px;
  }
  
  .nav-menu {
    width: 100%;
  }
  
  .nav-menu ul {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-menu ul li {
    margin: 5px 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-menu ul li a {
    display: block;
    padding: 10px;
  }
  
  .main-content {
    grid-template-columns: 1fr;
  }
  
  .login-container, .cadastro-container {
    max-width: 90%;
    margin: 40px auto;
    padding: 20px;
  }
  
  .logo {
    width: 150px;
  }
  
  .login-container h1,
  .cadastro-container h1 {
    font-size: 1.5em;
  }
  
  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .login-container, .cadastro-container {
    max-width: 95%;
    margin: 20px auto;
    padding: 15px;
  }
  
  .logo {
    width: 120px;
  }
  
  .login-container h1,
  .cadastro-container h1 {
    font-size: 1.3em;
  }
  
  .form-group {
    margin-bottom: 10px;
  }
  
  input[type="text"],
  input[type="password"],
  input[type="email"],
  select,
  textarea {
    padding: 10px;
    font-size: 14px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}
