@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #88e775;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

h1 {
  font-weight: bold;
  margin: 0;
}

p {
  font-size: 14px;
  font-weight: 100;
  line-height: 20px;
  letter-spacing: 0.5px;
  margin: 20px 0 30px;
}
.btn-regresar {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #2196f3;
  color: white;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.btn-regresar:hover {
  background-color: #0b7dda;
}

button {
  border-radius: 20px;
  border: 1px solid #10b943;
  background-color: #168600;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
  cursor: pointer;
}

button.ghost {
  background-color: transparent;
  border-color: #ffffff;
}

button:active {
  transform: scale(0.95);
}

button:focus {
  outline: none;
}

input {
  background-color: #eee;
  border: none;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
}

.container {
  background-color: rgba(238, 238, 238, 0.8); /* #eee con 50% de transparencia */
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
              0 10px 10px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
  width: 768px;
  max-width: 100%;
  min-height: 480px;
}

.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

.sign-in-container {
  left: 0;
  width: 50%;
  z-index: 2;
}

.sign-up-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

.container.right-panel-active .sign-up-container {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
}

.container.right-panel-active .sign-in-container {
  transform: translateX(100%);
  opacity: 0;
  z-index: 1;
}

.form-container form {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 0 50px;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}

.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}

.container.right-panel-active .overlay-container {
  transform: translateX(-100%);
}

.overlay {
  background: linear-gradient(to right, #10b943, #168600);
  color: #ffffff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
  transform: translateX(50%);
}

.overlay-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.overlay-left {
  transform: translateX(-20%);
  left: 0;
}

.container.right-panel-active .overlay-left {
  transform: translateX(0);
}

.overlay-right {
  right: 0;
  transform: translateX(0);
}

.container.right-panel-active .overlay-right {
  transform: translateX(20%);
}
.mensaje-exito {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4CAF50;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  z-index: 999;
}
.mensaje-error {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e74c3c; /* Rojo */
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  z-index: 999;
}

@media (max-width: 768px) {
  .mensaje-error {
    width: 90%;
    font-size: 14px;
    padding: 10px;
    top: 60px;
  }
}


@media (max-width: 768px) {
  body {
    padding: 20px 10px;
    height: auto;
    display: block;
    background-size: cover;
  }

  .container {
    width: 100%;
    min-height: auto;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .overlay-container {
    display: none;
  }

  .form-container {
    position: static;
    width: 100%;
    height: auto;
    opacity: 1 !important;
    transform: none !important;
    z-index: 1;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background-color: #ffffff;
    padding: 20px;
  }

  .form-container form {
    padding: 10px;
    height: auto;
  }

  .form-container h1 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #168600;
  }

  input {
    padding: 14px;
    font-size: 14px;
    border-radius: 8px;
  }

  button {
    margin-top: 12px;
    padding: 14px;
    font-size: 14px;
    border-radius: 25px;
    width: 100%;
    max-width: 300px;
  }

  .mensaje-exito {
    width: 90%;
    font-size: 14px;
    padding: 10px;
    top: 15px;
  }
}

