.overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.login-modal {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

.modal-title {
  margin-bottom: 30px;
  font-size: 22px;
  font-weight: 600;
  color: #333;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input {
  width: 100%;
  padding: 10px 10px 10px 0;
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

.input-group input:focus {
  border-bottom-color: #2d89ef;
}

.input-group label {
  position: absolute;
  left: 0;
  top: 10px;
  color: #aaa;
  font-size: 14px;
  transition: all 0.2s ease;
  pointer-events: none;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -14px;
  font-size: 12px;
  color: #2d89ef;
}

.textarea {
  width: 100%;
  padding: 10px 10px 10px 0;
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  font-size: 16px;
  outline: none;
  resize: vertical; /* permite ajustar el tamaño vertical */
  transition: border-color 0.3s;
  height: 200px;
}

.textarea:focus {
  border-bottom-color: #2d89ef;
}

.textarea:focus + label,
.textarea:not(:placeholder-shown) + label {
  top: -14px;
  font-size: 12px;
  color: #2d89ef;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #2d89ef;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #1b5dab;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

@keyframes fadeIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
