/* ========================================
   ESTILOS DA PÁGINA DE RECUPERAÇÃO DE SENHA
   Design moderno e profissional
======================================== */

:root {
  --primary-color: #e91e63;
  --primary-dark: #c2185b;
  --secondary-color: #9c27b0;
  --secondary-dark: #7b1fa2;
  --accent-color: #f8bbd0;
  --success-color: #4caf50;
  --danger-color: #f44336;
  --warning-color: #ff9800;
  --dark: #333;
  --gray: #666;
  --light-gray: #f5f5f5;
  --light-pink: #fce4ec;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 50%,
    var(--secondary-dark) 100%
  );
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  position: relative;
  overflow: hidden;
}

/* ========================================
   PARTÍCULAS DECORATIVAS
======================================== */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: -100px;
  left: 10%;
  animation-duration: 10s;
}

.particle:nth-child(2) {
  top: 50%;
  right: -100px;
  animation-duration: 12s;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  bottom: -100px;
  left: 30%;
  animation-duration: 15s;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  top: 20%;
  right: 20%;
  width: 200px;
  height: 200px;
  animation-duration: 9s;
  animation-delay: 1s;
}

.particle:nth-child(5) {
  bottom: 10%;
  right: 40%;
  width: 150px;
  height: 150px;
  animation-duration: 11s;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(-20px, -40px) rotate(180deg);
  }
  75% {
    transform: translate(-40px, -20px) rotate(270deg);
  }
}

/* ========================================
   CONTAINER PRINCIPAL
======================================== */
.reset-container {
  width: 100%;
  max-width: 440px;
  max-height: 95vh;
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reset-box {
  background: white;
  border-radius: 25px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
}

/* ========================================
   CABEÇALHO
======================================== */
.reset-header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 1.5rem 1.5rem;
  text-align: center;
  color: white;
}

.icon-lock {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.reset-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  font-weight: 800;
}

.subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 500;
}

/* ========================================
   ETAPAS
======================================== */
.step {
  padding: 1.5rem;
  display: none;
  overflow-y: auto;
  max-height: calc(95vh - 140px);
}

.step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.step-info {
  margin-bottom: 1.2rem;
  text-align: center;
}

.step-info h2 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.step-info p {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ========================================
   FORMULÁRIOS
======================================== */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.85rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.1);
}

.field-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--gray);
}

.field-hint span {
  font-weight: 600;
  color: var(--primary-color);
}

/* ========================================
   FORÇA DA SENHA
======================================== */
.password-strength {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.password-strength::after {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  background: var(--danger-color);
  transition: all 0.3s ease;
}

.password-strength.weak::after {
  width: 33%;
  background: var(--danger-color);
}

.password-strength.medium::after {
  width: 66%;
  background: var(--warning-color);
}

.password-strength.strong::after {
  width: 100%;
  background: var(--success-color);
}

/* ========================================
   BOTÕES
======================================== */
.btn-primary {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 0, 110, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-link {
  width: 100%;
  padding: 0.7rem;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.8rem;
}

.btn-link:hover {
  border-color: var(--primary-color);
  background: rgba(255, 0, 110, 0.05);
}

.btn-back {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: transparent;
  color: var(--gray);
  text-decoration: none;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-back:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(255, 0, 110, 0.05);
}

/* ========================================
   MENSAGENS
======================================== */
.error-message {
  background: linear-gradient(135deg, #fee 0%, #fdd 100%);
  color: var(--danger-color);
  padding: 0.8rem;
  border-radius: 12px;
  margin-top: 0.8rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  border: 2px solid #fcc;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.success-message {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: var(--success-color);
  padding: 0.8rem;
  border-radius: 12px;
  margin-top: 0.8rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  border: 2px solid #b1dfbb;
  animation: slideIn 0.4s ease;
}

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

/* ========================================
   RODAPÉ
======================================== */
.reset-footer {
  padding: 1.2rem 1.5rem;
  background: #f8f8f8;
  text-align: center;
}

.dev-mode {
  margin-top: 1rem;
  padding: 0.8rem;
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 12px;
  color: #856404;
}

.dev-mode strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.dev-mode p {
  margin: 0.3rem 0;
  font-size: 0.8rem;
}

.dev-mode span {
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 1rem;
  color: #000;
}

.dev-mode small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  opacity: 0.8;
}

/* ========================================
   RESPONSIVO
======================================== */
@media (max-width: 600px) {
  body {
    padding: 0.3rem;
  }

  .reset-container {
    max-width: 100%;
  }

  .reset-box {
    border-radius: 18px;
  }

  .reset-header {
    padding: 1.2rem 1rem;
  }

  .reset-header h1 {
    font-size: 1.3rem;
  }

  .icon-lock {
    font-size: 2rem;
  }

  .step {
    padding: 1.2rem 1rem;
  }

  .step-info h2 {
    font-size: 1rem;
  }

  .step-info p {
    font-size: 0.8rem;
  }

  .reset-footer {
    padding: 1rem;
  }

  .form-group input {
    padding: 0.7rem;
    font-size: 0.85rem;
  }

  .btn-primary,
  .btn-link {
    padding: 0.7rem;
    font-size: 0.85rem;
  }
}
