/* =================== RESET BASE =================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =================== WRAPPER =================== */
.reset-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* =================== CONTENEDOR PRINCIPAL =================== */
.reset-container {
  width: 100%;
  max-width: 440px;
  padding: 2rem 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(255,255,255,0.08) inset;
  color: #f8f8f8;
  position: relative;
  z-index: 10;
  animation: cardIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* =================== LOGO =================== */
.logo {
  text-align: center;
  margin-bottom: 1rem;
}

.logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: inline-block;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-6px); }
}

/* =================== TÍTULO =================== */
.reset-title {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #fff 30%, #e0cfff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

/* =================== DESCRIPCIÓN =================== */
.reset-description {
  font-size: 0.83rem;
  text-align: center;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin: 0.4rem 0 1rem;
}

.reset-description a {
  color: rgba(190, 220, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
}

/* =================== USUARIO AUTENTICADO =================== */
.reset-already-logged {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

/* =================== FORMULARIO =================== */
.reset-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.4rem 0;
}

.reset-fields input {
  width: 100%;
  padding: 0.82rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #fff;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.reset-fields input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.reset-fields input:focus {
  border-color: rgba(160, 120, 255, 0.8);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(140, 100, 255, 0.18);
}

/* =================== BOTÓN =================== */
.reset-actions button {
  width: 100%;
  padding: 0.82rem;
  border-radius: 50px;
  border: none;
  font-size: 0.92rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7c5cfc, #5a3de6);
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  margin-top: 0.4rem;
  box-shadow: 0 8px 24px -6px rgba(100, 60, 220, 0.55);
}

.reset-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(100, 60, 220, 0.65);
}

.reset-actions button:active  { transform: translateY(0); opacity: 0.9; }
.reset-actions button:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* =================== FOOTER =================== */
.reset-footer {
  margin-top: 1rem;
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.reset-footer a {
  color: rgba(190, 220, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  transition: color 0.2s;
}

.reset-footer a:hover { color: #fff; }

/* =================== MENÚ =================== */
.reset-menu {
  margin-top: 1rem;
  text-align: center;
}

.reset-menu p {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}

.reset-menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.reset-menu a {
  color: rgba(190, 220, 255, 0.95);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  transition: color 0.2s;
}

.reset-menu a:hover { color: #fff; }

.separator { color: rgba(255,255,255,0.35); margin: 0 4px; }

/* =================== MENSAJE DE ÉXITO =================== */
.reset-success-message {
  background: rgba(40, 167, 69, 0.15);
  border: 1.5px solid rgba(72, 200, 100, 0.45);
  border-radius: 16px;
  padding: 0;
  margin: 0.6rem 0 0.8rem;
  color: #d4edda;
  text-align: center;
  backdrop-filter: blur(8px);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, padding 0.35s ease;
}

.reset-success-message.show {
  max-height: 200px;
  opacity: 1;
  padding: 0.9rem 1rem;
}

.reset-success-message h3 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.reset-success-message p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.35;
  margin: 2px 0;
}

.reset-success-message strong {
  color: #fff;
  font-weight: 700;
  word-break: break-all;
}

/* =================== MENSAJE DE ERROR =================== */
.reset-error-message {
  background: rgba(220, 50, 50, 0.15);
  border: 1.5px solid rgba(230, 80, 80, 0.45);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 0.6rem 0 0.8rem;
  color: #ffd5d5;
  text-align: center;
  backdrop-filter: blur(8px);
  animation: shake 0.4s ease-in-out;
}

.reset-error-message i { margin-right: 5px; vertical-align: middle; }
.reset-error-message p { margin: 4px 0; font-size: 0.82rem; line-height: 1.35; }
.reset-error-message strong { font-weight: 700; }

@keyframes shake {
  0%,  100% { transform: translateX(0);   }
  20%, 60%  { transform: translateX(-5px); }
  40%, 80%  { transform: translateX(5px);  }
}

/* =================== ALERTS Y VALIDADORES =================== */
.alerts-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 16px;
  width: 100%;
}

.alert {
  display: block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-left: 4px solid rgba(124,58,237,0.8);
  color: rgba(255,255,255,0.95);
  padding: 12px 14px;
  border-radius: 15px;
  font-size: 0.9rem;
  line-height: 1.4;
  backdrop-filter: blur(10px);
}

.alert.error  { background: rgba(239,68,68,0.12);   border-left-color: rgba(239,68,68,0.9);   color: #fecaca; }
.alert.success{ background: rgba(16,185,129,0.12);  border-left-color: rgba(16,185,129,0.9);  color: #a7f3d0; }
.alert.info   { background: rgba(59,130,246,0.12);  border-left-color: rgba(59,130,246,0.9);  color: #bfdbfe; }

.errorlist, .reset-fields ul, .reset-fields ol {
  list-style: none; padding: 0; margin: 10px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}

.errorlist li, .reset-fields li {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(255,255,255,0.08);
  padding: 10px 12px; border-radius: 12px;
  color: rgba(255,255,255,0.9); font-size: 0.9rem;
  backdrop-filter: blur(8px);
}

.errorlist li::before, .reset-fields li::before {
  content: ""; width: 10px; height: 10px; margin-top: 6px;
  border-radius: 50%; background: rgba(239,68,68,0.9);
  flex: 0 0 10px; box-shadow: 0 0 8px rgba(239,68,68,0.5);
}

