/* --- SUCCESS OVERLAY MODAL --- */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f2f5fa; /* Matches your login-card background */
  display: none; /* Controlled by script.js */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  text-align: center;
}

.modal-content {
  padding: 40px;
  border-radius: 30px;
  background: #f2f5fa;
  /* Neumorphic effect for the modal content */
  box-shadow: 
    12px 12px 24px rgba(0,0,0,0.08), 
    -12px -12px 24px rgba(255,255,255,0.9);
}

/* Checkmark Animation */
.checkmark {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: block;
  stroke-width: 4;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin: 0 auto 25px;
  /* Shadow for the circle itself */
  box-shadow: inset 0px 0px 0px #22c55e;
  animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #22c55e;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Animation Keyframes */
@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}

@keyframes scale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
  100% { box-shadow: inset 0px 0px 0px 45px #22c55e; }
}

/* Success Text Styling */
.status-title {
  color: #103d75; /* Matches your h1 color */
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 10px;
}

.status-message {
  color: #7c8aa5; /* Matches your subtitle color */
  font-size: 16px;
}
