body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0e6d2d 0%, #005ea7 100%);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #333;
}

.container {
  background-color: #f9fefe;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  width: 100%;
  max-width: 300px;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
  position: relative;
}

.inicio {
  text-align: left;
  margin-bottom: 1.5rem;
}

.regreso {
  color: #0984e3;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
}

.regreso i {
  margin-right: 5px;
}

.logo {
  width: 180px;
  height: auto;
  margin-bottom: 1rem;
}

h2 {
  color: #006e6d;
  margin-bottom: 1.4rem;
}

p {
  color: #508ecb;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Formulario */
.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

input {
  width: 90%;
  max-width: 260px;
  padding: 12px 20px;
  border: 1px solid #a7dcd8;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: #eafaf9;
  transition: border 0.3s, background-color 0.3s;
  margin: 0 auto;
  display: block;
}

input:focus {
  border-color: #0984e3;
  outline: none;
  background-color: #ffffff;
}

#togglePassword {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translate(-100%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  font-size: 1.1rem;
  padding: 0;
}

#togglePassword:hover {
  color: #000;
}

.boton {
  width: 90%;
  max-width: 260px;
  padding: 12px;
  background-color: #00b894;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 0 auto;
  display: block;
}

.boton:hover {
  background-color: #019170;
}

.register-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #508ecb;
}

.register-link a {
  color: #0984e3;
  text-decoration: none;
  font-weight: 500;
}

.register-link a:hover {
  text-decoration: underline;
  color: #006ecb;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.bubbles span {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: floatBubbles 10s linear infinite;
  bottom: -150px;
}

.bubbles span:nth-child(1) {
  left: 10%;
  width: 50px;
  height: 50px;
  animation-delay: 0s;
}

.bubbles span:nth-child(2) {
  left: 20%;
  width: 30px;
  height: 30px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.bubbles span:nth-child(3) {
  left: 30%;
  width: 40px;
  height: 40px;
  animation-delay: 4s;
}

.bubbles span:nth-child(4) {
  left: 40%;
  width: 36px;
  height: 36px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.bubbles span:nth-child(5) {
  left: 50%;
  width: 56px;
  height: 56px;
  animation-delay: 3s;
}

.bubbles span:nth-child(6) {
  left: 60%;
  width: 44px;
  height: 44px;
  animation-delay: 5s;
}

.bubbles span:nth-child(7) {
  left: 70%;
  width: 32px;
  height: 32px;
  animation-delay: 1s;
  animation-duration: 14s;
}

.bubbles span:nth-child(8) {
  left: 80%;
  width: 40px;
  height: 40px;
  animation-delay: 6s;
}

.bubbles span:nth-child(9) {
  left: 90%;
  width: 52px;
  height: 52px;
  animation-delay: 2s;
}

.bubbles span:nth-child(10) {
  left: 100%;
  width: 28px;
  height: 28px;
  animation-delay: 4s;
}

.bubbles span:nth-child(11) {
  left: 15%;
  width: 60px;
  height: 60px;
  animation-delay: 8s;
}

.bubbles span:nth-child(12) {
  left: 25%;
  width: 48px;
  height: 48px;
  animation-delay: 10s;
}

.bubbles span:nth-child(13) {
  left: 35%;
  width: 36px;
  height: 36px;
  animation-delay: 12s;
}

.bubbles span:nth-child(14) {
  left: 45%;
  width: 44px;
  height: 44px;
  animation-delay: 14s;
}

.bubbles span:nth-child(15) {
  left: 55%;
  width: 40px;
  height: 40px;
  animation-delay: 16s;
}

.bubbles span:nth-child(16) {
  left: 65%;
  width: 52px;
  height: 52px;
  animation-delay: 18s;
}

.bubbles span:nth-child(17) {
  left: 75%;
  width: 56px;
  height: 56px;
  animation-delay: 20s;
}

.bubbles span:nth-child(18) {
  left: 85%;
  width: 32px;
  height: 32px;
  animation-delay: 22s;
}

.bubbles span:nth-child(19) {
  left: 95%;
  width: 40px;
  height: 40px;
  animation-delay: 24s;
}

.bubbles span:nth-child(20) {
  left: 5%;
  width: 48px;
  height: 48px;
  animation-delay: 26s;
}

@keyframes floatBubbles {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-1000px) scale(1.2);
    opacity: 0;
  }
}

.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.4s ease;
}