/*  ------ RESET E BASE GLOBAL ------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f5f7fa;
}
/*  ------ HEADER ------ */
.allmenu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1f2d3d;
  padding: 0 1rem;
  height: 60px;
  position: relative;
  z-index: 10;
}
.logo {
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;

}
.allmenu #title h2 {
  color: #e3eaf2;
  font-size: 1.5rem;
}

.navbar {
  display: flex;
  align-items: center;
}

.menu {
  display: flex;
  list-style: none;
  gap: 15px;
}
.menu ul {
  display: flex;
  list-style: none;
  margin-right: 45px;
}
.menu li {
  display: inline-block;
  margin: 20px;
}
.menu li a {
  color: #e3eaf2;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 10px 15px; /* */
  display: block;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #e3eaf2;
  cursor: pointer;
}
.menu a:hover {
  color: #1e90ff;
  transition: 0.3s;
}

main {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*  ------ CONTAINER PRINCIPAL ------ */
.container {
  max-width: 800px; /* 750px */
  width: 100%;
  height: 510px; /* 500px */
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  margin: 10px;
}

.box {
  position: absolute;
  align-items: center;
  height: 100%;
  width: 100%;
  border-radius: 1rem;
  /* top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); */
}

/*  ------ FORMULÁRIOS ------ */
.wrap-forms {
  position: absolute;
  padding: 20px 0;
  width: 45%;
  height: 100%;
  right: 0;
  top: 0;
  background-color: #ffffff;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  transition: 0.8s ease-in-out;
  border-radius: 0 1rem 1rem 0;
}

form {
  max-width: 280px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  flex-direction: column;
  align-items: center;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  transition: opacity 0.02s 0.4s;
}

form.signup-account {
  opacity: 0;
  pointer-events: none;
}

main.signup-mode form.signin-account {
  opacity: 0;
  pointer-events: none;
}
main.signup-mode form.signup-account {
  opacity: 1;
  pointer-events: all;
}

main.signup-mode .wrap-forms {
  right: 55%;
  border-radius: 1rem 0 0 1rem;
}
main.signup-mode .carousel-container {
  right: 0%;
  border-radius: 0 1rem 1rem 0;
}

.welcome-back h1,
.create-account h1 {
  color: #1f2d3d;
  font-size: 2rem;
  text-align: center;
  font-weight: bold;
  text-align: center;
}

form .welcome-back p,
form .create-account p {
  color: #4a4a4a;
  font-size: 0.8rem;
  text-align: center;
  font-weight: 500;
  margin-top: 1rem; /* 16px */
}

form a {
  color: #1f2d3d;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

form a:hover {
  color: #1e90ff;
}

.wrap-input {
  position: relative;
  display: flex;
  width: 100%;
  height: 2.3rem; /* 37px */
  margin: 1.25rem; /* 20px */
}

.input-field {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #f9fafb;
  border: none;
  outline: none;
  border-bottom: 1px solid #1f2d3d;
  padding: 0;
  font-size: 1rem; /* 16px */
  color: #151111;
  transition: 0.4s;
  padding-left: 5px;
}

label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem; /* 15px */
  color: #1f2d3d;
  pointer-events: none;
  transition: 0.4s;
  padding-left: 5px;
}

.input-field.active {
  border-bottom-color: #000000;
}

.input-field:focus + label,
.input-field:valid + label,
.input-field:-webkit-autofill + label {
  font-size: 0.8rem; /* 13px */
  top: -2px;
  color: #1e90ff;
  font-weight: bold;
}
/* .input-field.active + label {
  font-size: 0.8rem; 
  top: -2px;
  color: #1e90ff;
  font-weight: bold;
} */

.submit-button {
  display: inline-block;
  width: 70%;
  font-weight: bold;
  letter-spacing: 0.1em; /* 10% do tamanho da fonte */
  text-transform: uppercase;
  background-color: #1e90ff;
  color: #ffffff;
  cursor: pointer;
  border-radius: 15px;
  font-size: 0.95rem; /* 15px */
  transition: 0.3s;
  border: none;
  padding: 10px;
}
.submit-button:hover {
  background-color: #1c86ee;
}
.borderlinha {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 1.25rem 0 0.625rem 0; /* 20px 0 10px 0 */
}

.linha {
  border: 1px solid #1f2d3d;
  width: 6.25rem; /* 100px */
}

.borderlinha p {
  margin: 0;
  font-weight: bold;
  color: #1f2d3d;
}

.icones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.icones i {
  font-size: 1.5rem;
  transition: color 0.3s;
  color: #1f2d3d;
}
.icones i:hover {
  color: #1c86ee;
}

.sign-up-account .icones {
  margin-top: 0.75rem;
}

/*  ------ CARROSSEL E TEXTOS ------ */
.carousel-container {
  position: absolute;
  height: 100%;
  width: 55%;
  right: 45%;
  top: 0;
  background-color: #e3eaf2;
  border-radius: 1rem 0 0 1rem;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 2rem;
  overflow: hidden;
  transition: 0.8s ease-in-out;
}

.nome-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nome-container h1 {
  color: #1f2d3d;
  font-size: 2.4rem;
  text-align: center;
  position: relative;
  top: -15px;
  font-weight: bold;
}

.nome-container span {
  color: #1e61ff;
}

.wrapper-img {
  display: grid;
  position: relative;
  top: -35px;
  grid-template-columns: 0.9fr;
  grid-template-rows: 1fr;
}

.image {
  width: 100%;
  grid-column: 1/2;
  grid-row: 1/2;
  opacity: 0;
  transition: opacity 0.3s, transform 0.5s;
}

.image.show {
  opacity: 1;
  justify-self: center;
  margin-left: 20px;
  transform: none;
}

.img-1 {
  transform: translate(0, -50px);
}
.img-2 {
  transform: scale(0.4, 0.5);
}
.img-3 {
  transform: translateX(30px) scale(0.9);
}

/*  ------ CARROSSEL E TEXTOS ------ */
.alltext {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  top: -37px;
}

.wrap-text {
  overflow: hidden;
  transition: height 0.5s ease-in-out;
}

.text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(0);
  transition: transform 0.5s ease-in-out;
}

.text p {
  font-size: 1rem;
  font-weight: bold;
  color: #4a4a4a;
  line-height: 1.5rem;
  width: 400px;
  margin: 0 auto;
}

.bullets {
  position: absolute;
  top: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bullets span {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #aaa;
  margin: 0 0.25rem; /**/
  cursor: pointer;
  transition: 0.3s;
}

.bullets span.active {
  width: 1.1rem;
  background: #007bff;
  border-radius: 1rem;
}
.bullets span:hover {
  background: #3399ff;
  cursor: pointer;
}

/*  ------ FORMULÁRIO INTERNO ------ */
#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem;
  color: #ffff00;
}
#theme-toggle:hover {
  color: #ffffff;
}
#theme-toggle i,
#theme-toggle .material-symbols-outlined {
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* ===== MODO ESCURO ===== */
body.dark-mode {
  background-color: #0e0e0e;
  color: #d1d5db;
}

body.dark-mode .wrap-forms {
  background-color: #1a1a1a;
}

body.dark-mode .container {
  background-color: #1a1a1a;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

body.dark-mode .carousel-container {
  background-color: #121212;
}

body.dark-mode .box {
  border: 1px solid #356799;
  background-color: #181818;
}

body.dark-mode .nome-container h1 {
  color: #1e90ff;
}

body.dark-mode .nome-container h1 span,
body.dark-mode .text p {
  color: #f9fafb;
}

body.dark-mode .welcome-back h1,
body.dark-mode .create-account h1 {
  color: #1e90ff;
}

body.dark-mode .welcome-back p,
body.dark-mode .create-account p {
  color: #e5e7eb;
}

body.dark-mode .welcome-back p a,
body.dark-mode .create-account p a {
  color: #e5e7eb;
}

body.dark-mode .welcome-back p a:hover,
body.dark-mode .create-account p a:hover {
  color: #1e90ff;
}

body.dark-mode .input-field {
  background-color: transparent;
  color: #ffffff;
  border: none;
  border-bottom: 1px solid #1e90ff;
  padding: 10px;
}

body.dark-mode label {
  font-size: 1rem;
  color: #cccccc;
}


body.dark-mode .input-field.active + label {
  color: #1e90ff;
  font-size: 0.9rem;
}

body.dark-mode .submit-button {
  background-color: #1e90ff;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
}

body.dark-mode .submit-button:hover {
  background-color: #0051ff;
  cursor: pointer;
}

body.dark-mode .borderlinha p {
  color: #dddddd;
}

body.dark-mode .linha {
  border-color: #555555;
}

body.dark-mode .icones i {
  color: #ffffff;
  font-size: 1.5rem;
}

body.dark-mode .icones i:hover {
  color: #1e90ff;
}

body.dark-mode .allmenu {
  background-color: #1e1e1e;
  border-bottom: 1px solid #333333;
}

body.dark-mode .menu li a {
  color: #f5f5f5;
  padding: 10px 15px;
  display: block;
}

body.dark-mode .menu li a:hover {
  background-color: #111111;
  color: #1e90ff;
  border-radius: 10px;
}

body.dark-mode .bullets span {
  background-color: #cccccc;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
}

body.dark-mode .bullets span:hover {
  background-color: #3399ff;
}

body.dark-mode .bullets span.active {
  background-color: #1e65ff;
  width: 1.1rem;
  height: 10px;
  border-radius: 1rem;
}
