/* Register modal styles and visibility helpers */
#successModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#successModal.visible {
  display: flex !important;
}

.modal-hidden {
  display: none !important;
}

.hidden {
  display: none !important;
}

.visible {
  display: flex !important;
}

.visible-inline {
  display: inline !important;
}

.register-success-modal {
  text-align: center;
  padding: 48px 32px;
  min-width: auto;
  max-width: 420px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.1);
  border: 3px solid #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #4caf50;
  margin: 0 auto 20px;
}

.register-success-modal h3 {
  color: #f7931a;
  font-size: 1.5rem;
  margin: 16px 0 12px 0;
}

.register-success-modal p {
  color: #aaa;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.register-success-modal p strong {
  color: #f7931a;
  font-weight: 600;
}

#successSubtext {
  font-size: 0.9rem;
  margin-bottom: 28px !important;
  color: #999;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.success-actions .keystore-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.keystore-btn.secondary {
  background: rgba(247, 147, 26, 0.15);
  color: #f7931a;
  border: 1px solid #f7931a;
}

.keystore-btn.secondary:hover {
  background: rgba(247, 147, 26, 0.25);
  box-shadow: 0 4px 12px rgba(247, 147, 26, 0.2);
}

.password-requirements {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  gap: 8px;
  display: flex;
  flex-direction: column;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #999;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.requirement.met {
  color: #4caf50;
}

.requirement.unmet {
  color: #999;
}

.requirement-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  flex-shrink: 0;
}

.requirement.met .requirement-icon::before {
  content: '\2713';
}

@media (max-width: 768px) {
  .register-success-modal {
    padding: 36px 24px;
  }
}
