/**
 * @file
 * 密码重置成功模态框样式
 */

/* 模态框容器 */
.password-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease-out;
}

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

/* 遮罩层 */
.password-success-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* 模态框内容 */
.password-success-modal .modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* 成功图标 */
.password-success-modal .modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #52C41A 0%, #389E0D 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.password-success-modal .modal-icon svg {
  width: 48px;
  height: 48px;
  stroke: white;
}

/* 模态框标题 */
.password-success-modal .modal-title {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px;
}

/* 模态框消息 */
.password-success-modal .modal-message {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 32px;
}

/* 倒计时区域 */
.password-success-modal .modal-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 16px;
  background: #F5F5F7;
  border-radius: 12px;
}

.password-success-modal .countdown-text {
  font-size: 14px;
  color: #666;
}

.password-success-modal .countdown-timer {
  font-size: 32px;
  font-weight: 700;
  color: #0066CC;
  min-width: 48px;
  text-align: center;
  animation: pulse 1s ease-in-out infinite;
}

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

.password-success-modal .countunit {
  font-size: 14px;
  color: #666;
}

/* 模态框按钮区域 */
.password-success-modal .modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.password-success-modal .modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.password-success-modal .modal-btn-primary {
  background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.password-success-modal .modal-btn-primary:hover {
  background: linear-gradient(135deg, #0052A3 0%, #004080 100%);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
  transform: translateY(-2px);
}

.password-success-modal .modal-btn-secondary {
  background: white;
  color: #0066CC;
  border: 2px solid #0066CC;
}

.password-success-modal .modal-btn-secondary:hover {
  background: #F0F7FF;
  border-color: #0052A3;
  transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .password-success-modal .modal-content {
    padding: 40px 32px;
    margin: 20px;
  }

  .password-success-modal .modal-title {
    font-size: 24px;
  }

  .password-success-modal .modal-message {
    font-size: 14px;
  }

  .password-success-modal .modal-icon {
    width: 64px;
    height: 64px;
  }

  .password-success-modal .modal-icon svg {
    width: 40px;
    height: 40px;
  }

  .password-success-modal .countdown-timer {
    font-size: 28px;
    min-width: 40px;
  }
}

@media (max-width: 480px) {
  .password-success-modal .modal-content {
    padding: 32px 24px;
    width: calc(100% - 32px);
  }

  .password-success-modal .modal-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}
