:root {
  --color-primary: #66CDAA;
  --color-hover: #5cb38c;
  --color-text: #333;
  --color-label: gray;
  --color-border: #ccc;
  --color-error: red;
  --modal-bg: rgba(0, 0, 0, 0.7);
  --box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: var(--color-text);
  overflow: hidden;
}

/* HEADER */
header {
  background: var(--color-primary);
  color: white;
  padding: 5px;
  text-align: center;
}

/* CONTAINER */
.container {
  max-width: 400px;
  margin: 10px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}



/* TÍTULOS */
.container h2,
.h2 {
  font-size: 24px;
  text-align: center;
  color: #999;
  margin-bottom: 10px;
}

/* FORMULÁRIOS */
.input-login {
  position: relative;
  margin-bottom: 20px;
}

.input-login input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  font-size: 16px;
  outline: none;
}

.input-login label {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  font-size: 16px;
  color: var(--color-label);
  pointer-events: none;
}

.input-login input:focus + label,
.input-login input:not(:placeholder-shown) + label {
  top: 2px;
  font-size: 12px;
  color: #007bff;
  text-transform: uppercase;
}

label {
  font-weight: bold;
  color: #555;
  margin: 10px 0 5px;
  display: block;
}

input[type="text"],
input[type="password"] {
  width: calc(100% - 20px);
  padding: 8px 10px;
  margin: 13px 0;
  border: 1px solid #666;
  border-radius: 5px;
  font-size: 14px;
}

    .btnlogin:hover{
        background: rgba(0, 0, 0, 0.6);
        color: #007bff;
    }
 

input[type="submit"] {
  background: var(--color-primary);
  color:#004a9f;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

input[type="submit"]:hover {
  background: var(--color-hover);
}

.error-msg {
  color: var(--color-error);
  text-align: center;
  margin-top: 10px;
}

.forgot-password-section {
  text-align: center;
  margin-top: 5px;
}

.forgot-password-section button {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  margin: 5px;
}

.forgot-password-section button img {
  vertical-align: middle;
  margin-right: 5px;
}

/* TABELA */
table {
  width: 100%;
  border-collapse: collapse;
  background: none;
}

/* SENHA */
#password-wrapper {
  width: fit-content;
}

#password-wrapper input[disabled] {
  background-color: #f5f5f5;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-bg);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  text-align: left;
  position: relative;
}

.modal-content img {
  width: 80%;
  border-radius: 5px;
}

.modal h3 {
  margin-top: 10px;
}

.modal p {
  text-align: justify;
}

.close,
button a {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  float: right;
  cursor: pointer;
  text-decoration: none;
}

.close:hover,
button:hover {
  color: #000;
  background-color: #004a9f;
}

/* POSTS */
.containerpost {
  width: 100%;
  background: white;
  padding: 5px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  height: 250px;
  position: relative;
}



/* CARROSSEL */
.carousel-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.carousel {
  display: flex;
  white-space: nowrap;
  animation: scroll 10s linear infinite;
}

.carousel-wrapper:hover .carousel {
  animation-play-state: paused;
}

/* NOTÍCIA */
.noticia {
  width: 250px;
  height: 160px;
  margin: 5px;
  padding: 5px;
  background: #f9f9f9;
  border-radius: 10px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  display: inline-block;
  cursor: pointer;
}

.noticia:hover {
  background: #666;
  color: #fff;
}

.noticia img {
  max-width: 40%;
  border-radius: 5px;
  cursor: pointer;
}

/* Animação contínua */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* RESPONSIVO */
@media (min-width: 600px) {
  .container {
    max-width: 500px;
  }
  

  input[type="submit"] {
    width: auto;
    color: #004a9f;
  }

  .modal-content img {
    width: 70%;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 600px;
  }

  .modal-content img {
    width: 50%;
  }

  .containerpost {
    height: 300px;
  }

  .noticia {
    width: 280px;
    height: 180px;
  }
}
