@import "bootstrap.css";

*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: sans-serif;
}

body {
  background-color: tan;
  background-image: url(../img/2025-01-05-15-47-18_vista1.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

main {
  width: 100%;
  height: 100vh;
  padding: 20px;
  margin: auto;
  margin-top: 100px;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: auto;
  position: relative;
}

.backBox {
  width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 255, 132, 0.3);
}

.backBox div {
  width: 50%;
  margin: 60px 20px;
  color: white;
  transition: all 500ms;
}
.backBox-login {
  opacity: 0;
}

.backBox div p,
.backBox div button {
  margin-top: 20px;
}

.backBox div h3 {
  font-weight: 400;
  font-size: 26px;
}

.backBox button {
  padding: 10px 30px;
  border: 2px solid white;
  background: transparent;
  font-size: 14 px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  outline: none;
  transition: all 300ms;
}

.backBox button:hover {
  background: white;
  color: #42a2fd;
}

.backBox p span {
  font-size: large;
}

/* Formularios */
.container-login-register {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 350px;
  position: relative;
  top: -185px;
  left: 15px;
  transition: left 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.container-login-register form {
  width: 100%;
  padding: 85px 20px;
  background: white;
  position: absolute;
  border-radius: 20px;
}

.container-login-register form h2 {
  font-size: 30px;
  text-align: center;
  margin-bottom: 20px;
  color: #46a2fd;
}
.container-login-register form input {
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  border: none;
  background: #f2f2f2;
  font-size: 1rem;
  outline: none;
}

.container-login-register form button {
  padding: 10px 40px;
  margin-top: 40px;
  border: none;
  font-size: 14px;
  background: #46a2fd;
  color: white;
  cursor: pointer;
  outline: none;
}

.formulario-login {
  opacity: 1;
  display: block;
}

.formulario-register {
  display: none;
}

/* Trabajando en el Responsive Design */

@media screen and (max-width: 850px) {
  main {
    margin-top: 50px;
  }
  .backBox {
    max-width: 350px;
    height: 380px;
    margin: auto;
    flex-direction: column;
  }
  .backBox div {
    margin: 0px;
    position: absolute;
  }

  /* Formulario */
  .container-login-register {
    top: -10px;
    left: 0px;
    margin: auto;
  }
  .container-login-register form {
    padding: 50px 20px;
    position: relative;
  }
}
