* {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

#email-status-icon {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.segmented-control {
  position: relative;
  display: flex;
  border-radius: 24px;
  background: #F2F2F7;
  padding: 4px;
  width: 300px;
  margin: 50px auto;
  margin-top:40px;
  margin-bottom:30px;
  user-select: none;
}

.segmented-control .segment {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  cursor: pointer;
  z-index: 1;
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}

.segmented-control .segment.active {
  color: black;
}

.segmented-control .highlight {
  position: absolute;
  top: 4px;
  left: 0;
  width: 0; /* JS will set width */
  height: calc(100% - 8px);
  /* background: linear-gradient(90deg, #6155F5, #0088FF); */
  background-color: #fff;
  border-radius: 20px;
  transition: left 0.3s ease, width 0.3s ease;
  z-index: 0;
}

#password-eye {
  transition: transform 0.15s ease;
}
#password-eye:hover {
  transform: scale(1.1);
}


/* .modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
} */

.modal {
  position: fixed;
  inset: 0;
  display: flex;              /* ✅ always flex */
  align-items: center;
  justify-content: center;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

/* .modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease;
} */

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal.open .modal-backdrop {
  opacity: 1;
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 26px;
  width: 100%;
  max-width: 420px;
  z-index: 1;

  box-shadow: 0 20px 60px rgba(0,0,0,0.25);

  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.open .modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* .modal-content {
  position: relative;
  background: #fff;
  border-radius: 26px;
  width: 100%;
  max-width: 420px;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.open .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
} */

/* Prevent click-through */
.modal-content * {
  pointer-events: auto;
}

.modal-steps {
  position: relative;
  width: 100%;
  min-height: 280px;
}

.modal-step {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 12px; 
  box-sizing: border-box;

  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.modal-step.active {
  opacity: 1;
  z-index: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* .modal-steps {
  position: relative;
  min-height: 280px;
  pointer-events: none;
} */

/* .modal-step {
  position: absolute;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.modal-step.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
} */

/* .modal-step {
  position: absolute;
  inset: 0;
  padding: 24px;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  transition: 0.35s ease;
}

.modal-step.active {
  opacity: 1;
  z-index: 1;
  transform: translateX(0);
  pointer-events: auto;
} */

/* Show modal */
.modal.show {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

/* Hidden steps */
.hidden {
  display: none;
}

/* Typography */
.modal-content h2 {
  font-size: 1.2em;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 0.9em;
  color: #6b7280;
  margin-bottom: 14px;
}

.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
}

.otp-input:focus {
  border-color: #0088ff;
  box-shadow: 0 0 0 2px rgba(0,136,255,0.25);
}

/* Inputs */
.modal-input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  margin-bottom: 12px;
  outline: none;
}

.modal-input:focus {
  border-color: #0088ff;
}

/* Buttons */
.modal-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: #0088ff;
  color: white;
  cursor: pointer;
}

.loader {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35); /* soft white */
  border-top: 2px solid #ffffff;              /* pure white */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.is-busy {
  pointer-events: none;       /* blocks mouse */
  user-select: none;
  opacity: 0.6;               /* visual feedback */
  cursor: not-allowed;             /* show wait cursor */
}
