@import url("../css/components/__header.css");
@import url("../css/components/__darkMode.css");

body {
  background-color: #03081b;
  color: aliceblue;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ================================
   MAIN
================================ */

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;

  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ================================
   FORMULÁRIO
================================ */

.forms {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  background-color: #050d2d;
  padding: 1.5rem;
  border-radius: 1.2rem;
  border: 1px solid #ffffff20;
}

.forms input,
.forms textarea {
  width: 100%;
  padding: 0.9rem 1rem;

  background-color: transparent;
  border: 1px solid #ffffff40;
  border-radius: 0.8rem;

  color: aliceblue;
  font-size: 1rem;

  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.forms input::placeholder,
.forms textarea::placeholder {
  color: #ffffff80;
}

.forms input:focus,
.forms textarea:focus {
  border-color: aliceblue;
  background-color: #ffffff10;
}

.forms textarea {
  resize: vertical;
  min-height: 140px;
}

/* ================================
   BOTÃO
================================ */

.forms button {
  margin-top: 0.5rem;
  padding: 0.9rem;

  background-color: aliceblue;
  color: #03081b;

  border: none;
  border-radius: 1rem;

  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;

  transition: transform 0.2s ease, background-color 0.3s ease;
}

.forms button:hover {
  background-color: #e6f0ff;
  transform: translateY(-2px);
}

/* ================================
   LINKS SOCIAIS
================================ */

.links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.links a {
  min-width: 8rem;
  padding: 0.7rem 1.2rem;

  text-align: center;
  text-decoration: none;

  color: aliceblue;
  border: 1px solid #ffffff40;
  border-radius: 1rem;

  font-weight: 500;

  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease,
    border-color 0.3s ease;
}

.links a:hover {
  background-color: aliceblue;
  color: #03081b;
  border-color: aliceblue;
  transform: translateY(-2px);
}

/* ================================
   RESPONSIVO
================================ */

@media screen and (min-width: 768px) {
  main {
    padding: 3rem 2rem;
  }

  .forms {
    padding: 2rem;
  }

  .links {
    justify-content: flex-start;
  }
}

@media screen and (min-width: 1024px) {
  main {
    flex-direction: row;
    align-items: flex-start;
  }

  .forms {
    flex: 2;
  }

  .links {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
  }
}

/* ================================
   LIGHT MODE (opcional)
================================ */

body.light {
  background-color: #f4f6fb;
  color: #03081b;
}

body.light .forms {
  background-color: #ffffff;
  border-color: #03081b20;
}

body.light input,
body.light textarea {
  color: #03081b;
  border-color: #03081b40;
}

body.light input::placeholder,
body.light textarea::placeholder {
  color: #03081b80;
}

body.light .links a {
  color: #03081b;
  border-color: #03081b40;
}

body.light .links a:hover {
  background-color: #03081b;
  color: aliceblue;
}
