/* Modern OTP Popup Styles */
.modern-otp-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

.modern-otp-popup.show {
  display: flex;
}

.modern-otp-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.verification-icon {
  margin-bottom: 20px;
}

.verification-title {
  margin: 0 0 15px;
  font-size: 24px;
  font-weight: 600;
  color: #2c5530;
}

.verification-description {
  margin: 0 0 30px;
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}

.modern-otp-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 25px;
}

.modern-otp-input {
  width: 45px;
  height: 55px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: #333;
  background: white;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

.modern-otp-input::-webkit-outer-spin-button,
.modern-otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.modern-otp-input:focus {
  border-color: #2c5530;
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.modern-otp-input.filled {
  border-color: #2c5530;
  background: rgba(44, 85, 48, 0.05);
}

.modern-verify-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: #2c5530;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modern-verify-btn:hover {
  background: #234226;
}

.modern-verify-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.modern-error {
  color: #e74c3c;
  margin: 15px 0;
  font-size: 14px;
  display: none;
}

.modern-success {
  color: #2ecc71;
  margin: 15px 0;
  font-size: 18px;
  font-weight: 600;
  padding: 15px;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 12px;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resend-section {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.modern-resend-btn {
  background: none;
  border: none;
  color: #2c5530;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.2s ease;
}

.modern-resend-btn:hover {
  text-decoration: underline;
}

.modern-resend-btn:disabled {
  color: #999;
  cursor: not-allowed;
  text-decoration: none;
}

.resend-countdown {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

/* Loading Spinner Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 480px) {
  .modern-otp-content {
    padding: 30px 20px;
    margin: 20px;
  }

  .verification-title {
    font-size: 20px;
  }

  .verification-description {
    font-size: 14px;
  }

  .modern-otp-inputs {
    gap: 8px;
  }

  .modern-otp-input {
    width: 40px;
    height: 50px;
    font-size: 20px;
  }
}
