/* Stilo Inicio De Secion  */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}


body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  background: url("IMG/secion.jpg") center / cover no-repeat fixed;
  background-size: 140% 140%;
  animation: bgMove 6s linear infinite;
  overflow-x: hidden;
  overflow-y: auto;
}

@keyframes bgMove {
  0%   { background-position: 35% 50%; }
  50%  { background-position: 65% 50%; }
  100% { background-position: 35% 50%; }
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.glass-container,
.register-container,
.forgot-container {
  position: relative;
  width: 90%;
  max-width: 400px;
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.40);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.glass-container:hover,
.register-container:hover,
.forgot-container:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.55);
}

.glass-container::before,
.register-container::before,
.forgot-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: rgba(255, 255, 255, 0.10);
  transform: skewX(-15deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.glass-container:hover::before,
.register-container:hover::before,
.forgot-container:hover::before {
  left: 140%;
}


.glass-container h2,
.register-container h2,
.forgot-container h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 28px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-group {
  position: relative;
  margin-bottom: 26px;
}

.input-group input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.10);
  outline: none;
  border-radius: 35px;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.input-group input:focus {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.input-group label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.80);
  font-size: 16px;
  pointer-events: none;
  transition: all 0.25s ease;
}

.input-group input:focus + label,
.input-group input:valid + label {
  top: 0;
  left: 15px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 8px;
  border-radius: 10px;
  color: #fff;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.remember-forgot label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.remember-forgot input {
  margin-right: 8px;
  accent-color: #fff;
}

.remember-forgot a {
  color: #fff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.remember-forgot a:hover {
  text-decoration: underline;
}

.remember-forgot label,
.remember-forgot a {
  white-space: normal;
}

.login-btn,
.register-btn {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.30);
  border: none;
  border-radius: 35px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.10);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover,
.register-btn:hover {
  background: rgba(255, 255, 255, 0.40);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.20);
}

.login-btn:focus-visible,
.register-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.login-btn:active,
.register-btn:active {
  transform: translateY(0);
}

.register-link,
.login-link {
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
}

.register-link a,
.login-link a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.register-link a:hover,
.login-link a:hover {
  color: #a8e6cf;
  text-decoration: underline;
}

.forgot-container .info-text {
  color: rgba(255, 255, 255, 0.90);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  margin: 15px 0 25px 0;
  padding: 0 10px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.register-container .remember-forgot {
  justify-content: center;
}

.register-container .remember-forgot label {
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

#formMessage {
  display: none;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  transition: all 0.25s ease;
}

#formMessage.error {
  display: block;
  background: rgba(255, 77, 77, 0.15);
  border-color: rgba(255, 77, 77, 0.50);
}

#formMessage.success {
  display: block;
  background: rgba(112, 255, 180, 0.15);
  border-color: rgba(112, 255, 180, 0.40);
}

.toast,
#toast,
.toast-message,
.alert-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 99999;
  max-width: min(92vw, 430px);
  width: auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#toast.show,
.toast-message.show,
.alert-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

.field-error,
.input-error,
.error-text {
  margin-top: 6px;
  padding-left: 10px;
  font-size: 12px;
  color: #ff4d4d;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.is-invalid,
input.is-invalid {
  border-color: rgba(255, 77, 77, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.20) !important;
}

.is-valid,
input.is-valid {
  border-color: rgba(112, 255, 180, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(112, 255, 180, 0.18) !important;
}